]> git.pld-linux.org Git - packages/pdnsd.git/commitdiff
- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:22 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pdnsd.spec -> 1.21

pdnsd.spec

index 80e1d4207dbc7174497d3b389f2a00c7f19059f8..dc97f348ea2e86372be559363dbed2c1be40643b 100644 (file)
@@ -53,10 +53,20 @@ gzip -9nf AUTHORS ChangeLog NEWS README TODO \
 rm -rf $RPM_BUILD_ROOT
                                                                                 
 %post
-%chkconfig_add
+/sbin/chkconfig --add pdnsd
+if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
+       /etc/rc.d/init.d/pdnsd restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
+fi
 
 %preun
-%chkconfig_del
+if [ "$1" = "0" ]; then
+       if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
+               /etc/rc.d/init.d/pdnsd stop
+       fi
+       /sbin/chkconfig --del pdnsd
+fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.076229 seconds and 4 git commands to generate.