Author: glen                         Date: Thu Aug 30 12:09:38 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use functions

---- Files affected:
SOURCES:
   gnustep-base.init (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/gnustep-base.init
diff -u SOURCES/gnustep-base.init:1.4 SOURCES/gnustep-base.init:1.5
--- SOURCES/gnustep-base.init:1.4       Thu Aug 30 14:06:07 2007
+++ SOURCES/gnustep-base.init   Thu Aug 30 14:09:33 2007
@@ -12,8 +12,7 @@
 # Get service config
 [ -f /etc/sysconfig/gnustep ] && . /etc/sysconfig/gnustep
 
-case "$1" in
-  start)
+start() {
        if [ ! -f /var/lock/subsys/gnustep ]; then
                msg_starting "gnustep services"
                daemon gdomap $GDOMAP_OPTIONS
@@ -23,8 +22,9 @@
                msg_already_running "gnustep services"
                exit 1
        fi
-       ;;
-  stop)
+}
+
+stop() {
        if [ -f /var/lock/subsys/gnustep ]; then
                msg_stopping "gnustep services"
                killproc gdomap
@@ -34,18 +34,26 @@
                msg_not_running "gnustep services"
                exit 1
        fi
+}
+
+case "$1" in
+  start)
+       start
+       ;;
+  stop)
+       stop
        ;;
-   status)
+  status)
        status gdomap
        RETVAL=$?
-        ;;
-   restart|reload)
-       $0 stop
-       $0 start
        ;;
-    *)
-        msg_usage "$0 {start|stop|status|restart|reload}"
-        exit 1
+  restart|reload)
+       stop
+       start
+       ;;
+*)
+       msg_usage "$0 {start|stop|status|restart|reload}"
+       exit 1
 esac
 
 exit $RETVAL
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/gnustep-base.init?r1=1.4&r2=1.5&f=u

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

Reply via email to