[sr-dev] git:master: proper LSB return values of init script

Iñaki Baz Castillo ibc at aliax.net
Tue Mar 15 00:25:03 CET 2011


2011/3/14 Klaus Darilion <klaus.mailinglists at pernau.at>:
>  if [ "$RUN_KAMAILIO" != "yes" ]; then
>     echo "Kamailio not yet configured. Edit /etc/default/kamailio first."
> -    exit 0
> +    case "$1" in
> +    status)
> +        exit 4
> +       ;;
> +    *)
> +       exit 1
> +       ;;
> +    esac
>  fi

Hi Klaus, I agree, but in case of "stop" action is should return 0 as
the daemon is indeed stoped (LSB compliant).

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-dev mailing list