aboutsummaryrefslogtreecommitdiffstats
path: root/battd.service
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2024-09-04 20:38:59 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2024-09-04 20:40:30 +0100
commit4075554aa89dc6f67dfcbd6b0b07d990b21a6662 (patch)
tree1c407df216f0890801ab450a6ad4d5819d146396 /battd.service
parent3c1698a8d99e8fd74955b8e4456a3b7c114a7e7f (diff)
downloadbattd-4075554aa89dc6f67dfcbd6b0b07d990b21a6662.tar.gz
battd-4075554aa89dc6f67dfcbd6b0b07d990b21a6662.tar.xz
battd-4075554aa89dc6f67dfcbd6b0b07d990b21a6662.zip
Add a systemd service fileHEADmaster
This is helpful if you're stuck in a hole with nothing except for a laptop running Ubuntu to dig yourself out of it.
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