Added preliminar qcma_cli systemd unit file.
This commit is contained in:
11
systemd/user/dbus.service
Normal file
11
systemd/user/dbus.service
Normal 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
9
systemd/user/dbus.socket
Normal 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
12
systemd/user/qcma.service
Normal 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
|
Reference in New Issue
Block a user