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:
13
systemd/system/qcma.service
Normal file
13
systemd/system/qcma.service
Normal 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
|
Reference in New Issue
Block a user