summaryrefslogtreecommitdiff
path: root/contrib/debian/bbstored.in
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2008-02-02 08:31:52 +0100
committerReinhard Tartler <siretart@tauware.de>2008-02-02 08:31:52 +0100
commit2787035d98661881477d696403ca2a78b49322d5 (patch)
tree0a018e13726a0232332ac23565e1a7df32cdcc06 /contrib/debian/bbstored.in
parent2733267954e91e394fbb512ea3abb4c497c0752f (diff)
import version 0.11rc2
This commit has been made by 'bzr import'. I used the upstream tarball of Version 0.11rc2 for creating it. It has the md5sum: 68052f963a944c717a50bd65a54375ff
Diffstat (limited to 'contrib/debian/bbstored.in')
-rw-r--r--contrib/debian/bbstored.in46
1 files changed, 46 insertions, 0 deletions
diff --git a/contrib/debian/bbstored.in b/contrib/debian/bbstored.in
new file mode 100644
index 00000000..da6a50a0
--- /dev/null
+++ b/contrib/debian/bbstored.in
@@ -0,0 +1,46 @@
+#! /bin/sh
+
+# Start and stop the Box Backup server daemon.
+
+BBSTORED=@bindir_expanded@/bbstored
+CONFIG=@sysconfdir_expanded@/box/bbstored.conf
+PIDFILE=@localstatedir_expanded@/bbstored.pid
+
+test -x $BBACKUPD || exit 0
+test -f $CONFIG || exit 0
+
+case $1 in
+ start)
+ echo -n "Starting Box Backup Server daemon: bbstored"
+ start-stop-daemon --start --quiet --exec $BBSTORED > /dev/null
+ echo "."
+ ;;
+
+ stop)
+ echo -n "Stopping Box Backup Server daemon: bbstored"
+ start-stop-daemon --stop --quiet \
+ --pidfile $PIDFILE --exec $BBSTORED
+ echo "."
+ ;;
+
+ reload|force-reload)
+ echo -n "Reloading Box Backup Server configuration"
+ start-stop-daemon --stop --signal 1 --quiet --oknodo \
+ --pidfile $PIDFILE --exec $BBSTORED
+ echo "."
+ ;;
+
+ restart)
+ echo -n "Restarting Box Backup Server daemon: bbstored"
+ start-stop-daemon --stop --quiet --pidfile $PIDFILE \
+ --exec $BBSTORED
+ start-stop-daemon --start --quiet \
+ --exec $BBSTORED > /dev/null
+ echo "."
+ ;;
+
+ *)
+ echo "Usage: /etc/init.d/bbstored {start|stop|reload|force-reload|restart}"
+esac
+
+exit 0