[rtkit] Convert systemd-install to systemctl

Lennart Poettering lennart at fedoraproject.org
Wed Aug 4 01:48:20 UTC 2010


commit 5baf4514baabb38486d4673ad0a0cacdd76d6ecb
Author: Lennart Poettering <lennart at poettering.net>
Date:   Wed Aug 4 03:47:58 2010 +0200

    Convert systemd-install to systemctl

 rtkit.spec |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/rtkit.spec b/rtkit.spec
index 1c2195a..6cf7d50 100644
--- a/rtkit.spec
+++ b/rtkit.spec
@@ -1,6 +1,6 @@
 Name:          rtkit
 Version:       0.9
-Release:       1%{?dist}
+Release:       2%{?dist}
 Summary:       Realtime Policy and Watchdog Daemon
 Group:         System Environment/Base
 # The daemon itself is GPLv3+, the reference implementation for the client BSD
@@ -56,10 +56,11 @@ 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 --realize=minimal rtkit-daemon.service >/dev/null 2>&1 || :
+/bin/systemctl enable rtkit-daemon.service >/dev/null 2>&1 || :
 
 %preun
 if [ "$1" -eq 0 ]; then
-	/usr/bin/systemd-install disable --realize rtkit-daemon.service >/dev/null 2>&1 || :
+	/bin/systemctl disable rtkit-daemon.service >/dev/null 2>&1 || :
 fi
 
 %files
@@ -75,6 +76,9 @@ fi
 %{_mandir}/man8/*
 
 %changelog
+* Wed Aug  4 2010 Lennart Poettering <lpoetter at redhat.com> - 0.9-2
+- Convert systemd-install to systemctl
+
 * Tue Jul 13 2010 Lennart Poettering <lpoetter at redhat.com> - 0.9-1
 - New upstream release
 


More information about the scm-commits mailing list