On Sun, Nov 27, 2005 at 03:30:42PM +0100, harry gaillac wrote:
> serveur1:/etc/init.d# sh -x /etc/init.d/openpbx start
> +
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> + NAME=openpbx
> + DESC=OpenPBX
> + DAEMON=/usr/local/sbin/openpbx
> + export LD_ASSUME_KERNEL=2.4.1
> + LD_ASSUME_KERNEL=2.4.1
> + test -x /usr/local/sbin/openpbx
> + set -e
> + echo -n 'Starting OpenPBX: '
> Starting OpenPBX: + '[' -f ']'
> + DAEMON=
> + '[' ']'
> + '[' ']'
> + start-stop-daemon --start --exec -- --
> start-stop-daemon: stat --: No such file or directory
> 
> I don't set safe_openpbx in /et/init.d/openpbx
> 

You have to test if $SAFE_OPENPBX is not empty before testing if
$SAFE_OPENPBX exists as a file, since [ -f ] is true and will result in
clearing the DAEMON variable as you can see in your trace.

/Mikael

_______________________________________________
Openpbx-dev mailing list
[email protected]
http://lists.openpbx.org/mailman/listinfo/openpbx-dev

Reply via email to