[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

start-stop-daemon no respeta LSB en init.d



Hola, leo en la documentación de "start-stop-daemon" que dicho demonio
devuelve 1 (error) si se hace un "start" sobre un servicio que ya
estaba corriendo salvo que se le pase la opción "--oknodo" en cuyo
caso devolvería 0.

Es decir, por defecto (puesto que ningún script arranca con
"start-stop-daemon --oknodo") TODOS los servicios en Debian devuelven
1 (error) si se hace "start" sobre nu servicio y arrancado.

Pues resulta que estoy teniendo algunos problemas con HeartBeat y es
debido a este código de retorno erróneo puesto que no respeta las
especificaciones LSB [1]:

"For all other init-script actions, the init script shall return an
exit status of zero if the action was successful. Otherwise, the exit
status shall be non-zero, as defined below. In addition to
straightforward success, the following situations are also to be
considered successful:
- restarting a service (instead of reloading it) with the force-reload argument
- running start on a service already running
- running stop on a service already stopped or not running
- running restart on a service already stopped or not running
- running try-restart on a service already stopped or not running"

¿Qué os parece? ¿no se trata de un buen bug?



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

Reply to: