blob: ec0bfefb779213b6c19fadafcb0501f13f398862 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#! /bin/sh
# Start and stop the Box Backup server daemon.
BBSTORED=@sbindir_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
|