Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 10742

Trending Articles