https://github.com/root-project/root
Tip revision: 3762b520c8fdb94351bd121c07c6a60d44c2ed3c authored by Unknown Author on 14 July 2006, 17:21:33 UTC
This commit was manufactured by cvs2svn to create tag 'v5-12-00'.
This commit was manufactured by cvs2svn to create tag 'v5-12-00'.
Tip revision: 3762b52
proofd.in
#! /bin/sh
#
# proofd Start/Stop the PROOF daemon
#
# chkconfig: 345 20 80
# description: The proofd daemon starts the PROOF worker processes.
#
# processname: proofd
# pidfile: /var/run/proofd.pid
# config:
PROOFD=@bindir@/proofd
# Source function library.
. /etc/init.d/functions
# Get config.
. /etc/sysconfig/network
# Get proofd config
[ -f /etc/sysconfig/proofd ] && . /etc/sysconfig/proofd
# Check that networking is up.
if [ ${NETWORKING} = "no" ]
then
exit 0
fi
[ -x $PROOFD ] || exit 0
RETVAL=0
prog="proofd"
start() {
echo -n $"Starting $prog: "
# when not built with --prefix, add as last argument the
# path where ROOT is installed
daemon $PROOFD $PROOFDOPTS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/proofd
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc proofd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/proofd
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status proofd
;;
restart|reload)
stop
start
;;
condrestart)
if [ -f /var/lock/subsys/proofd ]; then
stop
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}"
exit 1
esac
exit $RETVAL