exit 0
fi
+RETVAL=0
case "$1" in
start)
# Check if the service is already running?
- if [ -f /var/lock/subsys/auth2 ]; then
- msg_already_running auth2
- exit 1
- else
+ if [ ! -f /var/lock/subsys/auth2 ]; then
msg_starting auth2
daemon auth2
RETVAL=$?
[ RETVAL -eq 0 ] && touch /var/lock/subsys/auth2
+ else
+ msg_already_running auth2
fi
;;
stop)
rm -f /var/lock/subsys/auth2
else
msg_not_running auth2
- exit 1
fi
;;
status)
+ status auth2
+ exit $?
;;
- restart|reload)
+ restart|force-reload)
$0 stop
$0 start
+ exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|reload|status}"
- exit 1
+ msg_usage "$0 {start|stop|restart|force-reload|status}"
+ exit 3
;;
esac
exit $RETVAL
-
exit 0
fi
+RETVAL=0
case "$1" in
start)
# Check if the service is already running?
- if [ -f /var/lock/subsys/codasrv ]; then
- msg_already_running codasrv
- exit 1
- else
+ if [ ! -f /var/lock/subsys/codasrv ]; then
msg_starting codasrv
startserver >/dev/null 2>&1 &
- ok
RETVAL=$?
+ ok
[ RETVAL -eq 0 ] && touch /var/lock/subsys/codasrv
+ else
+ msg_already_running codasrv
fi
;;
stop)
while [ -f /var/lib/vice/srv/pid ]; do
sleep 1
done
- deltext
ok
rm -f /var/lock/subsys/codasrv
else
msg_not_running codasrv
- exit 1
fi
;;
status)
;;
- restart|reload)
+ restart|force-reload)
$0 stop
$0 start
+ exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|reload|status}"
- exit 1
+ msg_usage "$0 {start|stop|restart|force-reload|status}"
+ exit 3
;;
esac
exit $RETVAL
-
exit 0
fi
+RETVAL=0
case "$1" in
start)
# Check if the service is already running?
- if [ -f /var/lock/subsys/update ]; then
- msg_already_running update
- exit 1
- else
+ if [ ! -f /var/lock/subsys/update ]; then
msg_starting rpc2portmap
daemon rpc2portmap
+ RETVAL=$?
msg_starting updatesrv
daemon updatesrv
+ [ RETVAL -eq 0 ] && RETVAL=$?
msg_starting updateclnt
daemon updateclnt -h `cat /var/lib/vice/db/scm`
- RETVAL=$?
+ [ RETVAL -eq 0 ] && RETVAL=$?
[ RETVAL -eq 0 ] && touch /var/lock/subsys/update
+ else
+ msg_already_running update
fi
;;
stop)
rm -f /var/lock/subsys/update
else
msg_not_running update
- exit 1
fi
;;
status)
;;
- restart|reload)
+ restart|force-reload)
$0 stop
$0 start
+ exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|reload|status}"
- exit 1
+ msg_usage "$0 {start|stop|restart|force-reload|status}"
+ exit 3
;;
esac
exit 0
fi
+RETVAL=0
case "$1" in
start)
# Check if the service is already running?
- if [ -f /var/lock/subsys/venus ]; then
- msg_already_running venus
- exit 1
- else
+ if [ ! -f /var/lock/subsys/venus ]; then
msg_starting venus
busy
venus &
- deltext
- ok
RETVAL=$?
+ ok
[ RETVAL -eq 0 ] && touch /var/lock/subsys/venus
+ else
+ msg_already_running venus
fi
;;
stop)
rm -f /var/lock/subsys/venus
else
msg_not_running venus
- exit 1
fi
;;
status)
;;
- restart|reload)
+ restart|force-reload)
$0 stop
$0 start
+ exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|reload|status}"
- exit 1
+ msg_usage "$0 {start|stop|restart|force-reload|status}"
+ exit 3
;;
esac
exit $RETVAL
-