[Box Backup-commit] COMMIT r1844 - in box/trunk/distribution/boxbackup/contrib: . debian

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed Sep 19 23:32:50 BST 2007


Author: chris
Date: 2007-09-19 23:32:50 +0100 (Wed, 19 Sep 2007)
New Revision: 1844

Added:
   box/trunk/distribution/boxbackup/contrib/debian/
   box/trunk/distribution/boxbackup/contrib/debian/README.txt
   box/trunk/distribution/boxbackup/contrib/debian/bbackupd
   box/trunk/distribution/boxbackup/contrib/debian/bbstored
Log:
Added Debian initscripts, thanks to James Stark.


Added: box/trunk/distribution/boxbackup/contrib/debian/README.txt
===================================================================
--- box/trunk/distribution/boxbackup/contrib/debian/README.txt	                        (rev 0)
+++ box/trunk/distribution/boxbackup/contrib/debian/README.txt	2007-09-19 22:32:50 UTC (rev 1844)
@@ -0,0 +1,9 @@
+These start scripts are for Debian GNU/Linux.  If installed manually they should
+be placed in /etc/init.d.  To create the symbolic links for the appropriate run
+levels execute the following commands:
+
+update-rc.d bbackupd defaults 90
+update-rc.d bbstored defaults 80
+
+James Stark
+<jstark at ieee.org>

Added: box/trunk/distribution/boxbackup/contrib/debian/bbackupd
===================================================================
--- box/trunk/distribution/boxbackup/contrib/debian/bbackupd	                        (rev 0)
+++ box/trunk/distribution/boxbackup/contrib/debian/bbackupd	2007-09-19 22:32:50 UTC (rev 1844)
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+# Start and stop the Box Backup client daemon.
+
+test -x /usr/local/bin/bbackupd || exit 0
+test -f /etc/box/bbackupd.conf || exit 0
+
+case $1 in
+	start)
+		echo -n "Starting Box Backup Client daemon: bbackupd"
+		start-stop-daemon --start --quiet --exec /usr/local/bin/bbackupd > /dev/null
+		echo "."
+		;;
+		
+	stop)
+		echo -n "Stopping Box Backup Client daemon: bbackupd"
+		start-stop-daemon --stop --quiet --pidfile /var/run/bbackupd.pid --exec /usr/local/bin/bbackupd
+		echo "."
+		;;
+	
+	reload|force-reload)
+		echo -n "Reloading the Box Backup Client daemon's configuration"
+		start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /var/run/bbackupd.pid --exec /usr/local/bin/bbackupd
+		echo "."
+		;;
+		
+	restart)
+		echo -n "Restarting the Box Backup Client daemon: bbackupd"	
+		start-stop-daemon --stop --quiet --pidfile /var/run/bbackupd.pid --exec /usr/local/bin/bbackupd
+		start-stop-daemon --start --quiet --exec /usr/local/bin/bbackupd > dev/null
+		echo "."
+		;;
+	*)
+		echo "Usage: /etc/init.d/bbackupd {start|stop|reload|force-reload|restart}"
+		exit 1
+esac
+
+exit 0

Added: box/trunk/distribution/boxbackup/contrib/debian/bbstored
===================================================================
--- box/trunk/distribution/boxbackup/contrib/debian/bbstored	                        (rev 0)
+++ box/trunk/distribution/boxbackup/contrib/debian/bbstored	2007-09-19 22:32:50 UTC (rev 1844)
@@ -0,0 +1,38 @@
+#! /bin/sh
+
+# Start and stop the Box Backup Server.
+
+test -x /usr/local/bin/bbstored || exit 0
+test -f /etc/box/bbstored.conf || exit 0
+
+case $1 in
+	start)
+		echo -n "Starting the Box Backup Server daemon: bbstored"
+		start-stop-daemon --start --quiet --exec /usr/local/bin/bbstored > /dev/null
+		echo "."
+		;;
+	
+	stop)
+		echo -n "Stopping the Box Backup Server daemon: bbstored"
+		start-stop-daemon --stop --quiet --pidfile /var/run/bbstored.pid --exec /usr/local/bin/bbstored
+		echo "."
+		;;
+	
+	reload|force-reload)
+		echo -n "Reloading the Box Backup Server's configuration"
+			start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /var/run/bbstored.pid --exec /usr/local/bin/bbstored
+		echo "."
+		;;
+	
+	restart)
+		echo -n "Restarting the Box Backup Server daemon: bbstored"
+		start-stop-daemon --stop --quiet --pidfile /var/run/bbstored.pid --exec /usr/local/bin/bbstored
+		start-stop-daemon --start --quiet --exec /usr/local/bin/bbstored > /dev/null
+		echo "."
+		;;
+	
+	*)
+		echo "Usage /etc/init.d/bbstored {start|stop|reload|force-reload|restart}"
+esac
+
+exit 0




More information about the Boxbackup-commit mailing list