[ntp] drop old systemd scriptlets

Miroslav Lichvar mlichvar at fedoraproject.org
Thu May 2 16:36:14 UTC 2013


commit 955dec16488f5bcd32d2f337b4493105ed0cb15d
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Thu May 2 18:08:49 2013 +0200

    drop old systemd scriptlets

 ntp.spec |   68 --------------------------------------------------------------
 1 files changed, 0 insertions(+), 68 deletions(-)
---
diff --git a/ntp.spec b/ntp.spec
index 7810e1e..51a0ed2 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -311,108 +311,40 @@ popd
 /usr/sbin/useradd -u 38 -g 38 -s /sbin/nologin -M -r -d %{_sysconfdir}/ntp ntp 2>/dev/null || :
 
 %post
-%if 0%{?systemd_post:1}
 %systemd_post ntpd.service
-%else
-/bin/systemctl daemon-reload &> /dev/null || :
-%endif
 
 %post -n ntpdate
-%if 0%{?systemd_post:1}
 %systemd_post ntpdate.service
-%else
-/bin/systemctl daemon-reload &> /dev/null || :
-%endif
 
 %post -n sntp
-%if 0%{?systemd_post:1}
 %systemd_post sntp.service
-%else
-/bin/systemctl daemon-reload &> /dev/null || :
-%endif
 
 %post perl
-%if 0%{?systemd_post:1}
 %systemd_post ntp-wait.service
-%else
-/bin/systemctl daemon-reload &> /dev/null || :
-%endif
 
 %preun
-%if 0%{?systemd_preun:1}
 %systemd_preun ntpd.service
-%else
-if [ "$1" -eq 0 ]; then
-	/bin/systemctl --no-reload disable ntpd.service &> /dev/null
-	/bin/systemctl stop ntpd.service &> /dev/null
-fi
-:
-%endif
 
 %preun -n ntpdate
-%if 0%{?systemd_preun:1}
 %systemd_preun ntpdate.service
-%else
-if [ "$1" -eq 0 ]; then
-	/bin/systemctl --no-reload disable ntpdate.service &> /dev/null
-	/bin/systemctl stop ntpdate.service &> /dev/null
-fi
-:
-%endif
 
 %preun -n sntp
-%if 0%{?systemd_preun:1}
 %systemd_preun sntp.service
-%else
-if [ "$1" -eq 0 ]; then
-	/bin/systemctl --no-reload disable sntp.service &> /dev/null
-	/bin/systemctl stop sntp.service &> /dev/null
-fi
-:
-%endif
 
 %preun perl
-%if 0%{?systemd_preun:1}
 %systemd_preun ntp-wait.service
-%else
-if [ "$1" -eq 0 ]; then
-	/bin/systemctl --no-reload disable ntp-wait.service &> /dev/null
-	/bin/systemctl stop ntp-wait.service &> /dev/null
-fi
-:
-%endif
 
 %postun
-%if 0%{?systemd_postun_with_restart:1}
 %systemd_postun_with_restart ntpd.service
-%else
-/bin/systemctl daemon-reload &> /dev/null
-if [ "$1" -ge 1 ]; then
-	/bin/systemctl try-restart ntpd.service &> /dev/null
-fi
-:
-%endif
 
 %postun -n ntpdate
-%if 0%{?systemd_postun:1}
 %systemd_postun
-%else
-/bin/systemctl daemon-reload &> /dev/null || :
-%endif
 
 %postun -n sntp
-%if 0%{?systemd_postun:1}
 %systemd_postun
-%else
-/bin/systemctl daemon-reload &> /dev/null || :
-%endif
 
 %postun perl
-%if 0%{?systemd_postun:1}
 %systemd_postun
-%else
-/bin/systemctl daemon-reload &> /dev/null || :
-%endif
 
 %files
 %dir %{ntpdocdir}


More information about the scm-commits mailing list