add sample systemd system service

this needs manual setup:
- creation of un-privilieged user 'qcma'
- add config file
- systemctl enable & systemctl start
This commit is contained in:
Alexandre Detiste
2015-03-16 12:35:59 +01:00
parent 1a30cee9c5
commit 610c3f2b52

View File

@@ -0,0 +1,13 @@
[Unit]
Description="Qcma daemon"
Documentation=man:qcma_cli(6)
ConditionPathExists=/home/qcma/.config/codestation/qcma.conf
[Service]
ExecStart=/usr/bin/qcma_cli --verbose
ExecReload=/bin/kill -HUP $MAINPID
User=qcma
[Install]
Alias=qcma_cli.service
WantedBy=default.target