1 2 3 4 5 6 7 8 9 10 11 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