enable/disable systemd service by default
This commit is contained in:
parent
b17c07cfbc
commit
cc8ec4c714
@ -55,6 +55,12 @@ getent passwd rtkit >/dev/null 2>&1 || useradd \
|
||||
|
||||
%post
|
||||
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
||||
/usr/bin/systemd-install enable rtkit-daemon.service >/dev/null 2>&1 || :
|
||||
|
||||
%preun
|
||||
if [ "$1" -eq 0 ]; then
|
||||
/usr/bin/systemd-install disable rtkit-daemon.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
|
Loading…
Reference in New Issue
Block a user