SOURCES: Regina.init - pldized
zbyniu
zbyniu at pld-linux.org
Thu May 11 02:45:35 CEST 2006
Author: zbyniu Date: Thu May 11 00:45:35 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- pldized
---- Files affected:
SOURCES:
Regina.init (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SOURCES/Regina.init
diff -u SOURCES/Regina.init:1.4 SOURCES/Regina.init:1.5
--- SOURCES/Regina.init:1.4 Thu May 11 02:38:28 2006
+++ SOURCES/Regina.init Thu May 11 02:45:30 2006
@@ -1,49 +1,55 @@
#!/bin/sh
#
-# chkconfig: 345 80 30
-# description: Regina Stack daemon.
-# processname: rxstack
-# pidfile: /var/run/rxstack.pid
-# config: /etc/sysconfig/rxstack
+# rxstack Regina Stack daemon
+#
+# chkconfig: 345 80 30
+# description: Regina Stack daemon
+# processname: rxstack
+# pidfile: /var/run/rxstack.pid
+# config: /etc/sysconfig/rxstack
# source function library
. /etc/rc.d/init.d/functions
+# Get network config
+. /etc/sysconfig/network
+
+# Get service config
+[ -f /etc/sysconfig/rxstack ] && . /etc/sysconfig/rxstack
+
# Check that networking is up.
if is_yes "${NETWORKING}"; then
- if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
- msg_network_down rxstack
- exit 1
- fi
+ if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
+ msg_network_down rxstack
+ exit 1
+ fi
else
- exit 0
+ exit 0
fi
RETVAL=0
-
case "$1" in
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/rxstack ]; then
- msg_starting Regina Stack
- daemon /usr/bin/rxstack -2
- RETVAL=$?
- [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rxstack
- else
- msg_already_running Regina Stack
- fi
- ;;
+ msg_starting Regina Stack
+ daemon /usr/bin/rxstack -d
+ RETVAL=$?
+ [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rxstack
+ else
+ msg_already_running Regina
+ fi
+ ;;
stop)
- # Stop daemons.
- if [ -f /var/lock/subsys/rxstack ]; then
- msg_stopping Regina Stack
- killproc rxstack
- rm -f /var/lock/subsys/rxstack > /dev/null 2>&1
- else
- msg_not_running Regina Stack
- fi
- ;;
-
+ # Stop daemons.
+ if [ ! -f /var/lock/subsys/rxstack ]; then
+ msg_stopping Regina Stack
+ killproc /usr/bin/rxstack -2
+ rm -f /var/lock/subsys/rxstack
+ else
+ msg_not_running Regina Stack
+ fi
+ ;;
restart|reload)
$0 stop
$0 start
@@ -54,9 +60,8 @@
RETVAL=$?
;;
*)
- msg_usage "$0 {start|stop|status|restart|reload}"
- exit 1
+ msg_usage "$0 {start|stop|restart|reload|status}"
+ exit 3
esac
exit $RETVAL
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/Regina.init?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list