enable/disable systemd service by default

This commit is contained in:
Lennart Poettering 2010-06-29 19:46:55 +00:00
parent b17c07cfbc
commit cc8ec4c714

View File

@ -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)