From 610c3f2b52a02b7fce9525c0a3ca77c83048afa6 Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Mon, 16 Mar 2015 12:35:59 +0100 Subject: [PATCH] add sample systemd system service this needs manual setup: - creation of un-privilieged user 'qcma' - add config file - systemctl enable & systemctl start --- systemd/system/qcma.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 systemd/system/qcma.service diff --git a/systemd/system/qcma.service b/systemd/system/qcma.service new file mode 100644 index 0000000..96b9f81 --- /dev/null +++ b/systemd/system/qcma.service @@ -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