Author: qboosh                       Date: Sun Jul 20 17:31:41 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed force-reload, added try-restart

---- Files affected:
SOURCES:
   gpm.init (1.28 -> 1.29) 

---- Diffs:

================================================================
Index: SOURCES/gpm.init
diff -u SOURCES/gpm.init:1.28 SOURCES/gpm.init:1.29
--- SOURCES/gpm.init:1.28       Sun Apr 27 03:13:10 2008
+++ SOURCES/gpm.init    Sun Jul 20 19:31:35 2008
@@ -71,6 +71,16 @@
        fi
 }
 
+condrestart() {
+       if [ -f /var/lock/subsys/gpm ]; then
+               stop
+               start
+       else
+               msg_not_running "Gpm"
+               RETVAL=$1
+       fi
+}
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -80,16 +90,22 @@
   stop)
        stop
        ;;
-  restart|force-reload)
+  restart)
        stop
        start
        ;;
+  try-restart)
+       condrestart 0
+       ;;
+  force-reload)
+       condrestart 7
+       ;;
   status)
        status gpm
        exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       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/gpm.init?r1=1.28&r2=1.29&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to