Added preliminar qcma_cli systemd unit file.

This commit is contained in:
codestation
2015-03-12 20:50:01 -04:30
parent 18023fd969
commit ea9124e99b
3 changed files with 32 additions and 0 deletions

11
systemd/user/dbus.service Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=D-Bus User Message Bus
Documentation=man:dbus-daemon(1)
Requires=dbus.socket
[Service]
ExecStart=/usr/bin/dbus-daemon --session --address=systemd: --nofork --systemd-activation
ExecReload=/usr/bin/dbus-send --print-reply --session --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig
[Install]
Also=dbus.socket

9
systemd/user/dbus.socket Normal file
View File

@@ -0,0 +1,9 @@
[Unit]
Description=D-Bus User Message Bus Socket
[Socket]
ListenStream=%t/bus
[Install]
WantedBy=sockets.target
Also=dbus.service

12
systemd/user/qcma.service Normal file
View File

@@ -0,0 +1,12 @@
[Unit]
Description="Qcma daemon"
Documentation=man:qcma_cli(6)
ConditionPathExists=%h/.config/codestation/qcma.conf
[Service]
ExecStart=/usr/bin/qcma_cli --verbose
ExecStop=/usr/bin/dbus-send --print-reply --session --type=method_call --dest=org.qcma.HeadlessManager /HeadlessManager org.qcma.HeadlessManager.stop
[Install]
Alias=qcma_cli.service
WantedBy=default.target