Convert systemd-install to systemctl
This commit is contained in:
parent
5f85929892
commit
5baf4514ba
@ -1,6 +1,6 @@
|
|||||||
Name: rtkit
|
Name: rtkit
|
||||||
Version: 0.9
|
Version: 0.9
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Realtime Policy and Watchdog Daemon
|
Summary: Realtime Policy and Watchdog Daemon
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
# The daemon itself is GPLv3+, the reference implementation for the client BSD
|
# 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
|
%post
|
||||||
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
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 || :
|
/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
|
%preun
|
||||||
if [ "$1" -eq 0 ]; then
|
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
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -75,6 +76,9 @@ fi
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 4 2010 Lennart Poettering <lpoetter@redhat.com> - 0.9-2
|
||||||
|
- Convert systemd-install to systemctl
|
||||||
|
|
||||||
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 0.9-1
|
* Tue Jul 13 2010 Lennart Poettering <lpoetter@redhat.com> - 0.9-1
|
||||||
- New upstream release
|
- New upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user