From 58a88bb47347d2cbf0bf1e62749cd7cc9acb3b6f Mon Sep 17 00:00:00 2001 From: saq Date: Thu, 26 Jul 2001 05:42:05 +0000 Subject: [PATCH] - reverting last change: removing new macros from %p{re,ost}{,un} Changed files: bootparamd.spec -> 1.20 --- bootparamd.spec | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/bootparamd.spec b/bootparamd.spec index 061ab86..ad39e9a 100644 --- a/bootparamd.spec +++ b/bootparamd.spec @@ -49,10 +49,20 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bootparamd 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 -%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) -- 2.44.0