Rombobjörn

summaryrefslogtreecommitdiff
path: root/smart_spindown@.service
diff options
context:
space:
mode:
authorBjörn Persson <Bjorn@Rombobjörn.se>2018-03-18 08:16:40 +0100
committerBjörn Persson <Bjorn@Rombobjörn.se>2018-03-18 08:16:40 +0100
commit69d241362d4e45e7ce52136122fb116a2a640933 (patch)
tree16a4faac7f446a9172b0287ed225569ae630d7c2 /smart_spindown@.service
imported
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