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

bootparamd.spec

index 061ab860314a43f1f6fa6235cbbbde34ae8910c4..ad39e9a8437823d18b86a8ac21bcfe480c3989f5 100644 (file)
@@ -49,10 +49,20 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
 rm -rf $RPM_BUILD_ROOT
 
 %post
 rm -rf $RPM_BUILD_ROOT
 
 %post
-DESC="rpc.bootparamd server"; %chkconfig_add
+/sbin/chkconfig --add bootparamd
+if [ -f /var/lock/subsys/rpc.bootparamd ]; then
+       /etc/rc.d/init.d/bootparamd restart 1>&2
+else
+       echo "Type \"/etc/rc.d/init.d/bootparamd start\" to start rpc.bootparamd server" 1>&2
+fi
 
 %postun
 
 %postun
-%chkconfig_addun
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/rpc.bootparamd ]; then
+               /etc/rc.d/init.d/bootparamd stop 1>&2
+       fi
+       /sbin/chkconfig --del bootparamd
+fi
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
This page took 0.036853 seconds and 4 git commands to generate.