summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/debian/bbackupd.in4
-rw-r--r--contrib/debian/bbstored.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/contrib/debian/bbackupd.in b/contrib/debian/bbackupd.in
index 281eee91..5c04d0a2 100644
--- a/contrib/debian/bbackupd.in
+++ b/contrib/debian/bbackupd.in
@@ -4,7 +4,7 @@
BBACKUPD=@sbindir_expanded@/bbackupd
CONFIG=@sysconfdir_expanded@/box/bbackupd.conf
-PIDFILE=@localstatedir_expanded@/bbackupd.pid
+PIDFILE=@localstatedir_expanded@/bbackupd/bbackupd.pid
test -x $BBACKUPD || exit 0
test -f $CONFIG || exit 0
@@ -33,7 +33,7 @@ case $1 in
restart)
echo -n "Restarting Box Backup Client daemon: bbackupd"
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
- --exec $BBACKUPD
+ --exec $BBACKUPD --retry 5
start-stop-daemon --start --quiet \
--exec $BBACKUPD > /dev/null
echo "."
diff --git a/contrib/debian/bbstored.in b/contrib/debian/bbstored.in
index ec0bfefb..253a9684 100644
--- a/contrib/debian/bbstored.in
+++ b/contrib/debian/bbstored.in
@@ -4,7 +4,7 @@
BBSTORED=@sbindir_expanded@/bbstored
CONFIG=@sysconfdir_expanded@/box/bbstored.conf
-PIDFILE=@localstatedir_expanded@/bbstored.pid
+PIDFILE=@localstatedir_expanded@/run/bbstored.pid
test -x $BBACKUPD || exit 0
test -f $CONFIG || exit 0
@@ -33,7 +33,7 @@ case $1 in
restart)
echo -n "Restarting Box Backup Server daemon: bbstored"
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
- --exec $BBSTORED
+ --exec $BBSTORED --retry 5
start-stop-daemon --start --quiet \
--exec $BBSTORED > /dev/null
echo "."