summaryrefslogtreecommitdiff
path: root/contrib/suse
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-01-29 00:35:11 +0000
committerChris Wilson <chris+github@qwirx.com>2008-01-29 00:35:11 +0000
commitc647ffa0841a545d0a49e584213366c7fc064672 (patch)
treed87eaa776ee924415197921e46eb9ef691843b3c /contrib/suse
parentbecb1a27341d013ea4b5b5eca740319a30180877 (diff)
Update contributed scripts to use autoconf substitution for the
paths to binaries, configuration files and local state files.
Diffstat (limited to 'contrib/suse')
-rw-r--r--contrib/suse/bbackupd.in (renamed from contrib/suse/bbackupd)8
-rw-r--r--contrib/suse/bbstored.in (renamed from contrib/suse/bbstored)33
2 files changed, 22 insertions, 19 deletions
diff --git a/contrib/suse/bbackupd b/contrib/suse/bbackupd.in
index 4dd94154..d3a5659e 100644
--- a/contrib/suse/bbackupd
+++ b/contrib/suse/bbackupd.in
@@ -7,7 +7,7 @@
# RELEASED AND PROVIDED TO YOU UNDER THE SAME LICENCE AS THE BOXBACKUP
# SUITE OF PROGRAMS. LICENCE MAY BE VIEWED HERE:
#
-# http://www.fluffy.co.uk/boxbackup/license.html
+# http://www.boxbackup.org/license.html
######################################################################
#
# /etc/init.d/bbackupd
@@ -28,7 +28,7 @@
### END INIT INFO
# Check for missing binaries (stale symlinks should not happen)
-BBACKUPD_BIN=/usr/sbin/bbackupd
+BBACKUPD_BIN=@bindir_expanded@/bbackupd
if [ ! -x $BBACKUPD_BIN ] ; then
echo "$BBACKUPD_BIN not installed"
exit 5
@@ -90,7 +90,9 @@ case "$1" in
;;
probe)
- test /etc/box/bbackupd.conf -nt /var/run/bbackupd.pid && echo reload
+ test @sysconfdir_expanded@/box/bbackupd.conf \
+ -nt @localstatedir_expanded@/bbackupd.pid \
+ && echo reload
;;
*)
diff --git a/contrib/suse/bbstored b/contrib/suse/bbstored.in
index 1824dda7..e8c74278 100644
--- a/contrib/suse/bbstored
+++ b/contrib/suse/bbstored.in
@@ -7,15 +7,15 @@
# RELEASED AND PROVIDED TO YOU UNDER THE SAME LICENCE AS THE BOXBACKUP
# SUITE OF PROGRAMS. LICENCE MAY BE VIEWED HERE:
#
-# http://www.fluffy.co.uk/boxbackup/license.html
+# http://www.boxbackup.org/license.html
######################################################################
#
-# /etc/init.d/bbackupd
+# /etc/init.d/bbstored
# and its symbolic link
-# /(usr/)sbin/rcbbackupd
+# /(usr/)sbin/rcbbstored
#
### BEGIN INIT INFO
-# Provides: bbackupd
+# Provides: bbstored
# Required-Start: $named $network $local_fs $syslog
# X-UnitedLinux-Should-Start: $time ypbind sendmail
# Required-Stop: $named $network $localfs $syslog
@@ -23,15 +23,15 @@
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: BoxBackup server side daemon
-# Description: Client daemon for the BoxBackup software
-# that allows you to communicate with a bbstored server.
+# Description: Server daemon for the BoxBackup software,
+# to which bbackupd clients connect.
### END INIT INFO
#
# Check for missing binaries (stale symlinks should not happen)
-BBACKUPD_BIN=/usr/sbin/bbstored
-if [ ! -x $BBACKUPD_BIN ] ; then
- echo "$BBACKUPD_BIN not installed"
+BBSTORED_BIN=@bindir_expanded@/bbstored
+if [ ! -x $BBSTORED_BIN ] ; then
+ echo "$BBSTORED_BIN not installed"
exit 5
fi
@@ -43,13 +43,13 @@ rc_reset
case "$1" in
start)
echo -n "Starting bbstored "
- startproc $BBACKUPD_BIN
+ startproc $BBSTORED_BIN
rc_status -v
;;
stop)
- echo -n "Shutting down bstored "
- killproc -TERM $BBACKUPD_BIN
+ echo -n "Shutting down bbstored "
+ killproc -TERM $BBSTORED_BIN
rc_status -v
;;
@@ -74,24 +74,25 @@ case "$1" in
force-reload)
echo -n "Reload service bbstored "
- killproc -HUP $BBACKUPD_BIN
+ killproc -HUP $BBSTORED_BIN
rc_status -v
;;
reload)
echo -n "Reload service bbstored "
- killproc -HUP $BBACKUPD_BIN
+ killproc -HUP $BBSTORED_BIN
rc_status -v
;;
status)
echo -n "Checking for service bbstored "
- checkproc $BBACKUPD_BIN
+ checkproc $BBSTORED_BIN
rc_status -v
;;
probe)
- test /etc/box/bbstored.conf -nt /var/run/bbstored.pid && echo reload
+ test @sysconfdir_expanded@/box/bbstored.conf \
+ -nt @localstatedir_expanded@/bbstored.pid && echo reload
;;
*)