]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/suse/bacula-fd.in
Fix symlink creation in rpm gnome-console package (again).
[bacula/bacula] / bacula / platforms / suse / bacula-fd.in
index 8b725bc72222400b1b37247312b51562810e3a46..0f2c4279038451892509e2948852fd0a35f4403c 100755 (executable)
@@ -7,23 +7,28 @@
 # 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 <barninger at fairfieldcomputers.com>
+# Added rc.status functions 3/13/2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
 #
 
-# Source function library
-. /etc/rc.d/init.d/functions
+# 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: "
-       daemon @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
+       /sbin/startproc @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
        RETVAL=$?
+       rc_status -v
        echo
        [ $RETVAL -eq 0 ] && touch @subsysdir@/bacula-fd
        ;;
     stop)
        echo -n "Stopping the Bacula File daemon: "
-       killproc @sbindir@/bacula-fd
+       /sbin/killproc @sbindir@/bacula-fd
        RETVAL=$?
+       rc_status -v
        echo
        [ $RETVAL -eq 0 ] && rm -f @subsysdir@/bacula-fd
        ;;
@@ -33,7 +38,8 @@ case "$1" in
        $0 start
        ;;
     status)
-       status @sbindir@/bacula-fd
+       /sbin/checkproc @sbindir@/bacula-fd
+       rc_status -v
        ;;
     *)
        echo "Usage: $0 {start|stop|restart|status}"