diff options
Diffstat (limited to 'distribution/boxbackup/contrib/redhat/bbstored')
-rw-r--r-- | distribution/boxbackup/contrib/redhat/bbstored | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/distribution/boxbackup/contrib/redhat/bbstored b/distribution/boxbackup/contrib/redhat/bbstored deleted file mode 100644 index eadca1d1..00000000 --- a/distribution/boxbackup/contrib/redhat/bbstored +++ /dev/null @@ -1,83 +0,0 @@ -#! /bin/bash -# -# bbstored Start/Stop the box backup daemon. -# -# chkconfig: 345 93 07 -# description: bbstore is the server side deamon for Box Backup, a completely \ -# automatic on-line backup system -# processname: bbstored -# config: /etc/box -# pidfile: /var/run/bbstored.pid - -# Source function library. -. /etc/init.d/functions - -RETVAL=0 - -# See how we were called. - -prog="bbstored" - -# Check that configuration exists. -[ -f /etc/box/$prog.conf ] || exit 0 - -start() { - echo -n $"Starting $prog: " - daemon $prog - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog - return $RETVAL -} - -stop() { - echo -n $"Stopping $prog: " - killproc $prog - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog - return $RETVAL -} - -rhstatus() { - status $prog -} - -restart() { - stop - start -} - -reload() { - echo -n $"Reloading $prog daemon configuration: " - killproc $prog -HUP - retval=$? - echo - return $RETVAL -} - -case "$1" in - start) - start - ;; - stop) - stop - ;; - restart) - restart - ;; - reload) - reload - ;; - status) - rhstatus - ;; - condrestart) - [ -f /var/lock/subsys/$prog ] && restart || : - ;; - *) - echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}" - exit 1 -esac - -exit $? |