X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fplatforms%2Fsuse%2Fbacula-fd.in;h=547acd20bcac8a430f2fc584f491762a6987cf01;hb=dbf74791ad3def6973cb45aa916bff24e8137ade;hp=ba270866c2aa4d8d989142743b4dab85960dab57;hpb=cbd692e657c8da407cd8f3e2f1fc87b0f79eef76;p=bacula%2Fbacula diff --git a/bacula/platforms/suse/bacula-fd.in b/bacula/platforms/suse/bacula-fd.in index ba270866c2..547acd20bc 100755 --- a/bacula/platforms/suse/bacula-fd.in +++ b/bacula/platforms/suse/bacula-fd.in @@ -3,20 +3,34 @@ # bacula This shell script takes care of starting and stopping # the bacula File daemon. # -# This file is reported not to work by Alan Brown 21Feb04 -# -# chkconfig: 2345 90 99 +# chkconfig: 2345 90 9 # description: It comes by night and sucks the vital essence from your computers. # # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ +# Modified to work on SuSE 1/31/2004 D. Scott Barninger +# Added rc.status functions 3/13/2004 D. Scott Barninger +# Added LSB init info 10/14/2004 D. Scott Barninger # +### BEGIN INIT INFO +# Provides: bacula-fd +# Required-Start: $local_fs $network +# Required-Stop: $local_fs $network +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: bacula file daemon +# Description: Bacula network backup system file daemon +### END INIT INFO +# source process status functions +# this gives us funtion rc_status -v to tell us if we succeed or fail +. /etc/rc.status case "$1" in start) echo -n "Starting the Bacula File daemon: " /sbin/startproc @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf RETVAL=$? + rc_status -v echo [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd ;; @@ -24,6 +38,7 @@ case "$1" in echo -n "Stopping the Bacula File daemon: " /sbin/killproc @sbindir@/bacula-fd RETVAL=$? + rc_status -v echo [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd ;; @@ -34,6 +49,7 @@ case "$1" in ;; status) /sbin/checkproc @sbindir@/bacula-fd + rc_status -v ;; *) echo "Usage: $0 {start|stop|restart|status}"