powered by Jive Software

DO NOT alias 'reload' to 'restart' in init scripts!

I just had to explain why every user in the company was disconnected in the middle of the day because of this complete BS in your init script:

Handle how we were called.

case “$1” in

start)

start

;;

stop)

stop

;;

restart)

restart

;;

condrestart)

condrestart

;;

** reload)**

** restart**

;;

status)

status

;;

*)

echo “Usage $0 {start|stop|restart|status|condrestart|reload}”

RETVAL=1

esac

RELOAD means that the config is re-read and the service is NOT STOPPED OR INTERRUPTED.

If your service does not provide a reload function DO NOT FAKE IT.

Sincerely,

One Pissed off Sysadmin.

Thanks for the report, filed OF-693