SOURCES: yum-updatesd.init - finished: force-reload is not suppose...

qboosh qboosh at pld-linux.org
Mon Dec 17 17:55:34 CET 2007


Author: qboosh                       Date: Mon Dec 17 16:55:34 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- finished: force-reload is not supposed to restart service if not running,
  renamed condrestart (FC-specific) to try-restart (LSB 3.1),
  reload is not supported

---- Files affected:
SOURCES:
   yum-updatesd.init (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/yum-updatesd.init
diff -u SOURCES/yum-updatesd.init:1.2 SOURCES/yum-updatesd.init:1.3
--- SOURCES/yum-updatesd.init:1.2	Mon Dec 17 09:18:05 2007
+++ SOURCES/yum-updatesd.init	Mon Dec 17 17:55:29 2007
@@ -44,6 +44,16 @@
 	start
 }
 
+condrestart() {
+	if [ -f /var/lock/subsys/yum-updatesd ]; then
+		stop
+		start
+	else
+		msg_not_running yum-updatesd
+		RETVAL=$1
+	fi
+}
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -53,18 +63,22 @@
   stop) 
 	stop
 	;;
-  restart|force-reload|reload)
-	restart
+  restart)
+	stop
+	start
+	;;
+  try-restart)
+	condrestart 0
 	;;
-  condrestart)
-	[ -f /var/lock/subsys/yum-updatesd ] && restart
+  force-reload)
+	condrestart 7
 	;;
   status)
 	status yum-updatesd
 	RETVAL=$?
 	;;
   *)
-	msg_usage "$0 {start|stop|status|restart|reload|force-reload|condrestart}"
+	msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
 	exit 3
 esac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/yum-updatesd.init?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list