Package: rabbitmq-server
Version: 2.6.1-1
Severity: serious
Hi,
It appears that rabbitmq-server is using echoes instead of using the
lsb-base init.d functions. Please use them instead.
Example:
echo -n "Starting $DESC: "
start_rabbitmq
echo "$NAME."
with many things not standard at all, like writing "RabbitMQ is currently
running" when in fact, it shouldn't produce any message at all.
should instead be:
. /lib/lsb/init-functions
. /lib/init/vars.sh
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping ${DESC}" ${NAME}
start_rabbitmq
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
Please have a look into:
/etc/init.d/skeleton
as an example on how to write your init.d scripts.
Cheers,
Thomas Goirand (zigo)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]