Zope init Script 'status' Command Support
--- etc/rc.d/init.d/zope.in.orig 2003-07-24 15:08:11.000000000 -0400
+++ etc/rc.d/init.d/zope.in 2004-01-17 13:28:31.000000000 -0500
@@ -8,14 +8,14 @@
. /etc/rc.d/init.d/functions
zopectl="<<ZOPECTL>>"
-name="zope"
+prog="zope"
[ -f $zopectl ] || exit 1
RETVAL=0
start() {
- echo -n "Starting $name: "
+ echo -n $"Starting $prog: "
"$zopectl" start
RETVAL=$?
echo
@@ -23,7 +23,7 @@
}
stop() {
- echo -n "Stopping $name: "
+ echo -n $"Stopping $prog: "
"$zopectl" stop
RETVAL=$?
echo
@@ -38,6 +38,10 @@
stop)
stop
;;
+
+ status)
+ "$zopectl" status
+ ;;
restart)
stop
+++ etc/rc.d/init.d/zope.in 2004-01-17 13:28:31.000000000 -0500
@@ -8,14 +8,14 @@
. /etc/rc.d/init.d/functions
zopectl="<<ZOPECTL>>"
-name="zope"
+prog="zope"
[ -f $zopectl ] || exit 1
RETVAL=0
start() {
- echo -n "Starting $name: "
+ echo -n $"Starting $prog: "
"$zopectl" start
RETVAL=$?
echo
@@ -23,7 +23,7 @@
}
stop() {
- echo -n "Stopping $name: "
+ echo -n $"Stopping $prog: "
"$zopectl" stop
RETVAL=$?
echo
@@ -38,6 +38,10 @@
stop)
stop
;;
+
+ status)
+ "$zopectl" status
+ ;;
restart)
stop