Rombobjörn

summaryrefslogtreecommitdiff
path: root/smart_spindown@.service
diff options
context:
space:
mode:
Diffstat (limited to 'smart_spindown@.service')
-rw-r--r--smart_spindown@.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/smart_spindown@.service b/smart_spindown@.service
new file mode 100644
index 0000000..909bf5c
--- /dev/null
+++ b/smart_spindown@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Smart Spindown for %i
+Wants=local-fs.target
+After=syslog.target
+
+[Service]
+Type=idle
+WorkingDirectory=/etc/smart_spindown
+StandardOutput=syslog
+SyslogIdentifier=smart_spindown/output
+SyslogLevel=err
+ExecStart=/usr/local/bin/smart_spindown --conf=/etc/smart_spindown/%i.conf
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target