Changeset 2066 for box/trunk/contrib
- Timestamp:
- 29/01/2008 00:35:11 (4 years ago)
- Location:
- box/trunk/contrib
- Files:
-
- 2 edited
- 6 moved
-
debian/bbackupd.in (moved) (moved from box/trunk/contrib/debian/bbackupd) (2 diffs)
-
debian/bbstored.in (moved) (moved from box/trunk/contrib/debian/bbstored) (1 diff)
-
redhat/bbackupd.in (moved) (moved from box/trunk/contrib/redhat/bbackupd) (3 diffs)
-
redhat/bbstored.in (moved) (moved from box/trunk/contrib/redhat/bbstored) (3 diffs)
-
solaris/bbackupd-smf-method.in (modified) (1 diff)
-
solaris/bbstored-smf-method.in (modified) (1 diff)
-
suse/bbackupd.in (moved) (moved from box/trunk/contrib/suse/bbackupd) (3 diffs)
-
suse/bbstored.in (moved) (moved from box/trunk/contrib/suse/bbstored) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/contrib/debian/bbackupd.in
r1844 r2066 3 3 # Start and stop the Box Backup client daemon. 4 4 5 test -x /usr/local/bin/bbackupd || exit 0 6 test -f /etc/box/bbackupd.conf || exit 0 5 BBACKUPD=@bindir_expanded@/bbackupd 6 CONFIG=@sysconfdir_expanded@/box/bbackupd.conf 7 PIDFILE=@localstatedir_expanded@/bbackupd.pid 8 9 test -x $BBACKUPD || exit 0 10 test -f $CONFIG || exit 0 7 11 8 12 case $1 in 9 13 start) 10 14 echo -n "Starting Box Backup Client daemon: bbackupd" 11 start-stop-daemon --start --quiet --exec /usr/local/bin/bbackupd> /dev/null15 start-stop-daemon --start --quiet --exec $BBACKUPD > /dev/null 12 16 echo "." 13 17 ;; … … 15 19 stop) 16 20 echo -n "Stopping Box Backup Client daemon: bbackupd" 17 start-stop-daemon --stop --quiet --pidfile /var/run/bbackupd.pid --exec /usr/local/bin/bbackupd 21 start-stop-daemon --stop --quiet \ 22 --pidfile $PIDFILE --exec $BBACKUPD 18 23 echo "." 19 24 ;; 20 25 21 26 reload|force-reload) 22 echo -n "Reloading the Box Backup Client daemon's configuration" 23 start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /var/run/bbackupd.pid --exec /usr/local/bin/bbackupd 27 echo -n "Reloading Box Backup Client configuration" 28 start-stop-daemon --stop --signal 1 --quiet --oknodo \ 29 --pidfile $PIDFILE --exec $BBACKUPD 24 30 echo "." 25 31 ;; 26 32 27 33 restart) 28 echo -n "Restarting the Box Backup Client daemon: bbackupd" 29 start-stop-daemon --stop --quiet --pidfile /var/run/bbackupd.pid --exec /usr/local/bin/bbackupd 30 start-stop-daemon --start --quiet --exec /usr/local/bin/bbackupd > dev/null 34 echo -n "Restarting Box Backup Client daemon: bbackupd" 35 start-stop-daemon --stop --quiet --pidfile $PIDFILE \ 36 --exec $BBACKUPD 37 start-stop-daemon --start --quiet \ 38 --exec $BBACKUPD > /dev/null 31 39 echo "." 32 40 ;; -
box/trunk/contrib/debian/bbstored.in
r1844 r2066 1 1 #! /bin/sh 2 2 3 # Start and stop the Box Backup Server.3 # Start and stop the Box Backup server daemon. 4 4 5 test -x /usr/local/bin/bbstored || exit 0 6 test -f /etc/box/bbstored.conf || exit 0 5 BBSTORED=@bindir_expanded@/bbstored 6 CONFIG=@sysconfdir_expanded@/box/bbstored.conf 7 PIDFILE=@localstatedir_expanded@/bbstored.pid 8 9 test -x $BBACKUPD || exit 0 10 test -f $CONFIG || exit 0 7 11 8 12 case $1 in 9 13 start) 10 echo -n "Starting theBox Backup Server daemon: bbstored"11 start-stop-daemon --start --quiet --exec /usr/local/bin/bbstored> /dev/null14 echo -n "Starting Box Backup Server daemon: bbstored" 15 start-stop-daemon --start --quiet --exec $BBSTORED > /dev/null 12 16 echo "." 13 17 ;; 14 18 15 19 stop) 16 echo -n "Stopping the Box Backup Server daemon: bbstored" 17 start-stop-daemon --stop --quiet --pidfile /var/run/bbstored.pid --exec /usr/local/bin/bbstored 20 echo -n "Stopping Box Backup Server daemon: bbstored" 21 start-stop-daemon --stop --quiet \ 22 --pidfile $PIDFILE --exec $BBSTORED 18 23 echo "." 19 24 ;; 20 25 21 26 reload|force-reload) 22 echo -n "Reloading the Box Backup Server's configuration" 23 start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /var/run/bbstored.pid --exec /usr/local/bin/bbstored 27 echo -n "Reloading Box Backup Server configuration" 28 start-stop-daemon --stop --signal 1 --quiet --oknodo \ 29 --pidfile $PIDFILE --exec $BBSTORED 24 30 echo "." 25 31 ;; 26 32 27 33 restart) 28 echo -n "Restarting the Box Backup Server daemon: bbstored" 29 start-stop-daemon --stop --quiet --pidfile /var/run/bbstored.pid --exec /usr/local/bin/bbstored 30 start-stop-daemon --start --quiet --exec /usr/local/bin/bbstored > /dev/null 34 echo -n "Restarting Box Backup Server daemon: bbstored" 35 start-stop-daemon --stop --quiet --pidfile $PIDFILE \ 36 --exec $BBSTORED 37 start-stop-daemon --start --quiet \ 38 --exec $BBSTORED > /dev/null 31 39 echo "." 32 40 ;; 33 41 34 42 *) 35 echo "Usage /etc/init.d/bbstored {start|stop|reload|force-reload|restart}"43 echo "Usage: /etc/init.d/bbstored {start|stop|reload|force-reload|restart}" 36 44 esac 37 45 -
box/trunk/contrib/redhat/bbackupd.in
r217 r2066 1 1 #! /bin/bash 2 2 # 3 # bbackupd Start/Stop the box backup daemon.3 # bbackupd Start/Stop the box backup client daemon. 4 4 # 5 5 # chkconfig: 345 93 07 6 # description: bbackup is the client side deamon for Box Backup, a completely\7 # a utomatic on-line backup system6 # description: bbackupd is the client side deamon for Box Backup, \ 7 # a completely automatic on-line backup system. 8 8 # processname: bbackupd 9 # config: /etc/box10 # pidfile: /var/run/bbackupd.pid9 # config: @sysconfdir_expanded@/box 10 # pidfile: @localstatedir_expanded@/bbackupd.pid 11 11 12 12 # Source function library. … … 20 20 21 21 # Check that configuration exists. 22 [ -f /etc/box/$prog.conf ] || exit 022 [ -f @sysconfdir_expanded@/box/$prog.conf ] || exit 0 23 23 24 24 start() { … … 50 50 51 51 reload() { 52 echo -n $"Reloading $prog daemonconfiguration: "52 echo -n $"Reloading $prog configuration: " 53 53 killproc $prog -HUP 54 54 retval=$? -
box/trunk/contrib/redhat/bbstored.in
r217 r2066 1 1 #! /bin/bash 2 2 # 3 # bbstored Start/Stop the box backup daemon.3 # bbstored Start/Stop the box backup server daemon. 4 4 # 5 5 # chkconfig: 345 93 07 6 # description: bbstore is the server side deamon for Box Backup, a completely\7 # a utomatic on-line backup system6 # description: bbstored is the server side daemon for Box Backup, \ 7 # a completely automatic on-line backup system. 8 8 # processname: bbstored 9 # config: /etc/box10 # pidfile: /var/run/bbstored.pid9 # config: @sysconfdir_expanded@/box 10 # pidfile: @localstatedir_expanded@/bbstored.pid 11 11 12 12 # Source function library. … … 20 20 21 21 # Check that configuration exists. 22 [ -f /etc/box/$prog.conf ] || exit 022 [ -f @sysconfdir_expanded@/box/$prog.conf ] || exit 0 23 23 24 24 start() { … … 50 50 51 51 reload() { 52 echo -n $"Reloading $prog daemonconfiguration: "52 echo -n $"Reloading $prog configuration: " 53 53 killproc $prog -HUP 54 54 retval=$? -
box/trunk/contrib/solaris/bbackupd-smf-method.in
r2035 r2066 1 1 2 PIDFILE= /var/run/bbackupd.pid2 PIDFILE=@localstatedir_expanded@/bbackupd.pid 3 3 4 4 case $1 in -
box/trunk/contrib/solaris/bbstored-smf-method.in
r2035 r2066 1 PIDFILE= /var/run/bbstored.pid1 PIDFILE=@localstatedir_expanded@/bbstored.pid 2 2 3 3 case $1 in -
box/trunk/contrib/suse/bbackupd.in
r217 r2066 8 8 # SUITE OF PROGRAMS. LICENCE MAY BE VIEWED HERE: 9 9 # 10 # http://www. fluffy.co.uk/boxbackup/license.html10 # http://www.boxbackup.org/license.html 11 11 ###################################################################### 12 12 # … … 29 29 30 30 # Check for missing binaries (stale symlinks should not happen) 31 BBACKUPD_BIN= /usr/sbin/bbackupd31 BBACKUPD_BIN=@bindir_expanded@/bbackupd 32 32 if [ ! -x $BBACKUPD_BIN ] ; then 33 33 echo "$BBACKUPD_BIN not installed" … … 91 91 92 92 probe) 93 test /etc/box/bbackupd.conf -nt /var/run/bbackupd.pid && echo reload 93 test @sysconfdir_expanded@/box/bbackupd.conf \ 94 -nt @localstatedir_expanded@/bbackupd.pid \ 95 && echo reload 94 96 ;; 95 97 -
box/trunk/contrib/suse/bbstored.in
r217 r2066 8 8 # SUITE OF PROGRAMS. LICENCE MAY BE VIEWED HERE: 9 9 # 10 # http://www. fluffy.co.uk/boxbackup/license.html10 # http://www.boxbackup.org/license.html 11 11 ###################################################################### 12 12 # 13 # /etc/init.d/bb ackupd13 # /etc/init.d/bbstored 14 14 # and its symbolic link 15 # /(usr/)sbin/rcbb ackupd15 # /(usr/)sbin/rcbbstored 16 16 # 17 17 ### BEGIN INIT INFO 18 # Provides: bb ackupd18 # Provides: bbstored 19 19 # Required-Start: $named $network $local_fs $syslog 20 20 # X-UnitedLinux-Should-Start: $time ypbind sendmail … … 24 24 # Default-Stop: 0 1 2 6 25 25 # Short-Description: BoxBackup server side daemon 26 # Description: Client daemon for the BoxBackup software27 # t hat allows you to communicate with a bbstored server.26 # Description: Server daemon for the BoxBackup software, 27 # to which bbackupd clients connect. 28 28 ### END INIT INFO 29 29 # 30 30 31 31 # Check for missing binaries (stale symlinks should not happen) 32 BB ACKUPD_BIN=/usr/sbin/bbstored33 if [ ! -x $BB ACKUPD_BIN ] ; then34 echo "$BB ACKUPD_BIN not installed"32 BBSTORED_BIN=@bindir_expanded@/bbstored 33 if [ ! -x $BBSTORED_BIN ] ; then 34 echo "$BBSTORED_BIN not installed" 35 35 exit 5 36 36 fi … … 44 44 start) 45 45 echo -n "Starting bbstored " 46 startproc $BB ACKUPD_BIN46 startproc $BBSTORED_BIN 47 47 rc_status -v 48 48 ;; 49 49 50 50 stop) 51 echo -n "Shutting down b stored "52 killproc -TERM $BB ACKUPD_BIN51 echo -n "Shutting down bbstored " 52 killproc -TERM $BBSTORED_BIN 53 53 rc_status -v 54 54 ;; … … 75 75 force-reload) 76 76 echo -n "Reload service bbstored " 77 killproc -HUP $BB ACKUPD_BIN77 killproc -HUP $BBSTORED_BIN 78 78 rc_status -v 79 79 ;; … … 81 81 reload) 82 82 echo -n "Reload service bbstored " 83 killproc -HUP $BB ACKUPD_BIN83 killproc -HUP $BBSTORED_BIN 84 84 rc_status -v 85 85 ;; … … 87 87 status) 88 88 echo -n "Checking for service bbstored " 89 checkproc $BB ACKUPD_BIN89 checkproc $BBSTORED_BIN 90 90 rc_status -v 91 91 ;; 92 92 93 93 probe) 94 test /etc/box/bbstored.conf -nt /var/run/bbstored.pid && echo reload 94 test @sysconfdir_expanded@/box/bbstored.conf \ 95 -nt @localstatedir_expanded@/bbstored.pid && echo reload 95 96 ;; 96 97
Note: See TracChangeset
for help on using the changeset viewer.
