X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fplatforms%2Firix%2Fbacula-fd.in;h=d7672d3f51565b837f91b733b4697d5a73261a20;hb=dafda7b49217d9c0a5ba69596a2c2a674ad461d6;hp=9f26adea5dcf00e74bbe25e9dec9a9848e0c0c2e;hpb=f0cb36796eff1246842b1f445732dfca5936b839;p=bacula%2Fbacula diff --git a/bacula/platforms/irix/bacula-fd.in b/bacula/platforms/irix/bacula-fd.in index 9f26adea5d..d7672d3f51 100755 --- a/bacula/platforms/irix/bacula-fd.in +++ b/bacula/platforms/irix/bacula-fd.in @@ -3,28 +3,30 @@ # bacula This shell script takes care of starting and stopping # the bacula File daemon. # -# chkconfig: 2345 20 99 +# chkconfig: 2345 90 9 # description: It comes by night and sucks the vital essence from your computers. # # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ # case "$1" in - start) + 'start') echo "Starting the Bacula File daemon: " - @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf + if test -x @sbindir@/bacula-fd && test -f @sysconfidir@/bacula-fd.conf; then + exec @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf + fi RETVAL=$? echo [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd ;; - stop) + 'stop') echo "Stopping the Bacula File daemon: " -# killproc @sbindir@/bacula-fd + /sbin/killall -k 10 -TERM @sbindir@/bacula-fd RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd ;; - restart) + 'restart') $0 stop sleep 5 $0 start