diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-06-15 19:08:30 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-06-15 19:08:30 +0000 |
commit | 72667c28cea3804296dc8958bdf1c01151ddc177 (patch) | |
tree | 42bd780a61d57979c5b67ae8dc92803ba1f4d199 /contrib/debian/bbstored.in | |
parent | 9074faf170a90cd52e793160ef7ebca020d5ec83 (diff) |
Fix default locations of PID files.
Wait for daemons to stop before starting them again during restart.
Diffstat (limited to 'contrib/debian/bbstored.in')
-rw-r--r-- | contrib/debian/bbstored.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 "." |