diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-01-20 16:44:44 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-01-20 16:44:44 +0000 |
commit | 8a7f1a2a7ccb1a739d90f2de3fa333d24bcc73bb (patch) | |
tree | b071e5b031857f89c1722d29ab1a31a85e74c81a /contrib/debian/bbstored | |
parent | 5d5f7669b05b7bee05c5c0a8ddddd301483c0c19 (diff) |
Move distribution/boxbackup/contrib to the root directory of the project,
where people expect to find it, and we can write our configure scripts
to customise the files therein.
Add solaris SMF framework control files, by Ben Summers.
Diffstat (limited to 'contrib/debian/bbstored')
-rw-r--r-- | contrib/debian/bbstored | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/debian/bbstored b/contrib/debian/bbstored new file mode 100644 index 00000000..7a512161 --- /dev/null +++ b/contrib/debian/bbstored @@ -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 |