]> git.pld-linux.org Git - packages/bootparamd.git/blobdiff - bootparamd.spec
- use macros in %{pre,post}{,un}
[packages/bootparamd.git] / bootparamd.spec
index ad39e9a8437823d18b86a8ac21bcfe480c3989f5..6a5bb8e01d4800b311e17d47ce3c91dcc3eca88f 100644 (file)
@@ -49,20 +49,10 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/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
+DESC="rpc.bootparamd server"; %chkconfig_post
 
 %postun
-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
+%chkconfig_postun
 
 %files
 %defattr(644,root,root,755)
This page took 0.064904 seconds and 4 git commands to generate.