X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fplatforms%2Fsuse%2Fbacula-fd.in;h=6bfdf3371661b47e3aed8e1037de7509bc575eaa;hb=7c9e7cce294af5394516d46f4938290f7a6a00a1;hp=e8618ddf556d6a14b9aa37de0939a5bdc1002315;hpb=2344e14e3236ebf80d45650fb80dd3c5906f8f2b;p=bacula%2Fbacula diff --git a/bacula/platforms/suse/bacula-fd.in b/bacula/platforms/suse/bacula-fd.in index e8618ddf55..6bfdf33716 100755 --- a/bacula/platforms/suse/bacula-fd.in +++ b/bacula/platforms/suse/bacula-fd.in @@ -1,5 +1,8 @@ #! /bin/sh # +# Copyright (C) Kern Sibbald 2000-2015 +# License: BSD 2-Clause +# # bacula This shell script takes care of starting and stopping # the bacula File daemon. # @@ -7,17 +10,15 @@ # description: The Leading Open Source Backup Solution. # # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ -# Copyright (C) 2011 Free Software Foundation Europe e.V. # 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 -# Added $remote_fs, add bacula specific daemon user & group Bruno Friedmann # ### BEGIN INIT INFO # Provides: bacula-fd -# Required-Start: $local_fs $remote_fs $network -# Required-Stop: $local_fs $remote_fs $network -# Default-Start: 3 5 +# 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 @@ -27,10 +28,11 @@ # this gives us funtion rc_status -v to tell us if we succeed or fail . /etc/rc.status +RETVAL=0 case "$1" in start) echo -n "Starting the Bacula File daemon: " - /sbin/startproc @sbindir@/bacula-fd $2 -u @fd_user@ -g @fd_group@ -c @sysconfdir@/bacula-fd.conf + /sbin/startproc @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf RETVAL=$? rc_status -v echo @@ -48,6 +50,7 @@ case "$1" in $0 stop sleep 5 $0 start + RETVAL=$? ;; status) /sbin/checkproc @sbindir@/bacula-fd