Commit 42fa1404 authored by Marko Saukko's avatar Marko Saukko

Prevent ssu startup when system is shutting down.

[systemd] Prevent ssu startup when system is shutting down. Contributes to JB#24120

We need to map the dbus service file to systemd service file in order to
be able to prevent dbus activation of the service when system is for
example shutting down.
Signed-off-by: default avatarMarko Saukko <marko.saukko@jolla.com>
parent 0b1a2487
[D-BUS Service]
Interface=org.nemo.ssu
Name=org.nemo.ssu
Exec=/usr/bin/ssud
User=root
\ No newline at end of file
Exec=/bin/false
User=root
SystemdService=dbus-org.nemo.ssu.service
......@@ -36,6 +36,7 @@ Requires: ssu-network-proxy
# them for the vendor data packages to use
%attr(0755, -, -) %{_oneshotdir}/*
%{_bindir}/ssud
/lib/systemd/system/*.service
%{_datadir}/dbus-1/system-services/*.service
%{_sysconfdir}/dbus-1/system.d/*.conf
......
......@@ -13,10 +13,13 @@ SOURCES = ssuadaptor.cpp \
DBUS_SERVICE_NAME=org.nemo.ssu
systemd.files = ../systemd/dbus-$${DBUS_SERVICE_NAME}.service
systemd.path = /lib/systemd/system/
service.files = ../dbus/$${DBUS_SERVICE_NAME}.service
service.path = /usr/share/dbus-1/system-services/
conf.files = ../dbus/$${DBUS_SERVICE_NAME}.conf
conf.path = /etc/dbus-1/system.d/
INSTALLS += service conf
INSTALLS += systemd service conf
[Unit]
Description=SSU service
[Service]
Type=dbus
BusName=org.nemo.ssu
ExecStart=/usr/bin/ssud
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment