X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fplatforms%2Fsuse%2Fbacula-dir.in;h=d34e668c48ac41550019aa9f8288277fc073b57e;hb=a2c71542f1e2ad0ae8e7949a165bf31c80453ceb;hp=d192063b68cbcd4b6921e89e02dc918a9cd81d76;hpb=cbd692e657c8da407cd8f3e2f1fc87b0f79eef76;p=bacula%2Fbacula diff --git a/bacula/platforms/suse/bacula-dir.in b/bacula/platforms/suse/bacula-dir.in index d192063b68..d34e668c48 100755 --- a/bacula/platforms/suse/bacula-dir.in +++ b/bacula/platforms/suse/bacula-dir.in @@ -1,7 +1,5 @@ #! /bin/sh # -# This file is reported not to work by Alan Brown 21Feb04 -# # bacula This shell script takes care of starting and stopping # the bacula Director daemon # @@ -9,8 +7,13 @@ # 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 # +# source process status functions +# this gives us funtion rc_status -v to tell us if we succeed or fail +. /etc/rc.status RETVAL=0 case "$1" in @@ -18,6 +21,7 @@ case "$1" in echo -n "Starting the Bacula Director: " /sbin/startproc @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf RETVAL=$? + rc_status -v echo [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-dir ;; @@ -25,6 +29,7 @@ case "$1" in echo -n "Stopping the Director daemon: " /sbin/killproc @sbindir@/bacula-dir RETVAL=$? + rc_status -v echo [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-dir ;; @@ -35,6 +40,7 @@ case "$1" in ;; status) /sbin/checkproc @sbindir@/bacula-dir + rc_status -v ;; *) echo "Usage: $0 {start|stop|restart|status}"