[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/pcmcia-cs/devel pcmcia-cs.spec,4.12,4.13 rc.pcmcia,1.6,1.7



Update of /cvs/dist/rpms/pcmcia-cs/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23553

Modified Files:
	pcmcia-cs.spec rc.pcmcia 
Log Message:
Fix RFE bz#142453: add reload and force-reload
(we had reload as stop-start before, but cardmgr is a "good" daemon
which supports actual reload).



Index: pcmcia-cs.spec
===================================================================
RCS file: /cvs/dist/rpms/pcmcia-cs/devel/pcmcia-cs.spec,v
retrieving revision 4.12
retrieving revision 4.13
diff -u -r4.12 -r4.13
--- pcmcia-cs.spec	2 Mar 2005 19:13:02 -0000	4.12
+++ pcmcia-cs.spec	5 Apr 2005 03:43:42 -0000	4.13
@@ -161,6 +161,9 @@
 %dir %{_var}/lib/pcmcia
 
 %changelog
+* Mon Apr  4 2005 Pete Zaitcev <zaitcev redhat com>
+- Add real "reload" option to /etc/rc.d/init.d/pcmcia (bz#142453)
+
 * Wed Mar  2 2005 John Linville <linville redhat com>
 - Exclude SB emulation registers in config.opts
 


Index: rc.pcmcia
===================================================================
RCS file: /cvs/dist/rpms/pcmcia-cs/devel/rc.pcmcia,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- rc.pcmcia	14 Feb 2005 01:26:37 -0000	1.6
+++ rc.pcmcia	5 Apr 2005 03:43:42 -0000	1.7
@@ -52,7 +52,7 @@
 
 usage()
 {
-    echo $"Usage: $0 {start|stop|status|restart|reload}"
+    echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
 }
 
 cleanup()
@@ -150,12 +150,29 @@
 	fi
 	;;
 
-    restart|reload)
+    restart)
 	$0 stop
 	$0 start
 	EXITCODE=$?
 	;;
 
+    reload)
+	echo -n $"Reloading PCMCIA services: "
+	if [ -s /var/run/cardmgr.pid ] ; then
+	    PID=`cat /var/run/cardmgr.pid`
+	    kill -HUP $PID
+	    EXITCODE=$?
+	else
+	    EXITCODE=7
+	fi
+	echo $"done."
+	;;
+
+    force-reload)
+	$0 reload || $0 restart
+	EXITCODE=$?
+	;;
+
     *)
 	usage
 	;;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]