aboutsummaryrefslogtreecommitdiffstats
path: root/battd.service
diff options
context:
space:
mode:
Diffstat (limited to 'battd.service')
-rw-r--r--battd.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/battd.service b/battd.service
new file mode 100644
index 0000000..a6a3a5a
--- /dev/null
+++ b/battd.service
@@ -0,0 +1,12 @@
+# expects: ./install /opt/battd
+[Unit]
+Description=Battery Daemon
+Documentation=https://kramkow.ski/project/battd.html
+
+[Service]
+WorkingDirectory=/opt/battd
+ExecStart=/opt/battd/run
+ExecReload=kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target