File proofd of Package root

#!/bin/sh
#
# proofd Start/Stop the PROOF daemon
#
### BEGIN INIT INFO
# Provides:       proofd
# Required-Start: $network $syslog $remote_fs
# Should-Start:   
# Required-Stop:  $network $syslog $remote_fs
# Should-Stop:    
# Default-Start:  3 5
# Default-Stop:
# Short-Description: starts the PROOF worker processes
# Description:    The proofd daemon starts the PROOF worker processes.
### END INIT INFO

PROOFD=/usr/bin/proofd

# Source function library.
. /lib/lsb/init-functions
. /etc/rc.status

# Get proofd config
[ -f /etc/sysconfig/proofd ] && . /etc/sysconfig/proofd

# Check that networking is up.
if [ "$network = "no" ]
then
     exit 0
fi

[ -x $PROOFD ] || exit 0

prog="proofd"

case "$1" in
    start)
	echo -n "Starting service $prog"
	startproc $PROOFD $PROOFDOPTS
	rc_status -v
   	;;
    stop)
	echo -n "Stopping service $prog"
       	killproc $PROOFD
      	rc_status -v
   	;;
    try-restart|condrestart)
    	$0 status
    	if test $? = 0; then
        	$0 restart
    	else
        	rc_reset
    	fi
    	rc_status
        ;;
    restart)
        $0 stop
        $0 start
        rc_status
        ;;
    force-reload)
        echo -n "Reload service $prog"
        checkproc $PROOFD
        rc_status -v
        ;;
    reload)
        rc_status -v
        ;;
    status)
        echo -n "Checking for $prog: "
        checkproc $PROOFD
        rc_status -v
        ;;
    probe)
        ;;
    *)
        echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
        exit 1
        ;;
esac
openSUSE Build Service is sponsored by