Hello,

Does anyone know if this is applicable on other platforms besides RH? I would 
suspect so. This has been entered as an rpm bug but it really isn't related 
to rpm packaging but more to the software package as a whole. I'm not sure I 
want to go throwing a patch on this weekend's rpm release without a full 
understanding.

On Thursday 29 April 2010 11:08:00 am you wrote:
> >Which platforms? Do you have a patch for consideration?
>
> Scott,
> Pardon my lapse of sense, I should have filled in a bug report w/o
> bothering you directly! I did that last night:)
>
> It's the init scripts for x86 and x64 rhel/centos.
>
> This is actually important as some types of monitoring expect the
> init scripts to be lsb compliant and when the daemon is stopped for
> any reason, a `status' returns a non zero exit code, 3 for example.
>
> Thanks so much!
> jlc
>
>
>
> A simple patch for bacula-dir (applicable to sd & fd as well) is:
>
> *** bacula-dir 2010-04-28 20:32:16.000000000 -0600
> --- bacula-dir 2010-04-28 20:32:45.000000000 -0600
> ***************
> *** 61,70 ****
>          ;;
>       status)
>          status @sbindir@/bacula-dir
>          ;;
>       *)
>          echo "Usage: $0 {start|stop|restart|status}"
>          exit 1
>          ;;
>   esac
> ! exit 0
> --- 61,71 ----
>          ;;
>       status)
>          status @sbindir@/bacula-dir
> +        RETVAL=$?
>          ;;
>       *)
>          echo "Usage: $0 {start|stop|restart|status}"
>          exit 1
>          ;;
>   esac
> ! exit $RETVAL

------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to