[speech-dispatcher/f19] Revert "Drop the sysv -> systemd init script conversion"
Peter Robinson
pbrobinson at fedoraproject.org
Wed Mar 20 13:31:32 UTC 2013
commit e6db91e9f5bef63c62168738140f0ea963c7f79b
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Wed Mar 20 13:30:38 2013 +0000
Revert "Drop the sysv -> systemd init script conversion"
This reverts commit 933563ec395d5d2cfc57e5a63282ee712366bf95.
speech-dispatcher.spec | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/speech-dispatcher.spec b/speech-dispatcher.spec
index 6d5a0a4..f9ebc32 100644
--- a/speech-dispatcher.spec
+++ b/speech-dispatcher.spec
@@ -29,6 +29,8 @@ Patch0: 0001-RPM-Cleanups.patch
Patch1: speech-dispatcher-python3.patch
Requires(post): systemd-units
+Requires(post): systemd-sysv
+Requires(post): chkconfig
Requires(preun): systemd-units
Requires(postun): systemd-units
@@ -166,6 +168,16 @@ if [ $1 -eq 0 ] ; then
/bin/systemctl stop speech-dispatcherd.service > /dev/null 2>&1 || :
fi
+%triggerun -- speech-dispatcherd < 0.7.1-6
+# Save the current service runlevel info
+# User must manually run systemd-sysv-convert --apply httpd
+# to migrate them to systemd targets
+/usr/bin/systemd-sysv-convert --save speech-dispatcherd >/dev/null 2>&1 ||:
+
+# Run these because the SysV package being removed won't do them
+/sbin/chkconfig --del speech-dispatcherd >/dev/null 2>&1 || :
+/bin/systemctl try-restart speech-dispatcherd.service >/dev/null 2>&1 || :
+
%files
%doc AUTHORS ChangeLog NEWS README COPYING
%dir %{_sysconfdir}/speech-dispatcher/
More information about the scm-commits
mailing list