From cc8ec4c7146c845f61219ca63027f9b8102d7ee7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 29 Jun 2010 19:46:55 +0000 Subject: [PATCH] enable/disable systemd service by default --- rtkit.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtkit.spec b/rtkit.spec index 520db51..483ad30 100644 --- a/rtkit.spec +++ b/rtkit.spec @@ -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)