grazinggoat
Programmer
Looking for thoughts on good programming...
in my case i want to be able to do both a stop and start with the restart
call. is it wise to have my var RUNCMD for both calls ?
case ${COMMAND} in
stop)
RUNCMD=stop
;;
start)
RUNCMD=start
;;
restart)
RUNCMD=stop
RUNCMD=start
;;
status)
RUNCMD=status
;;
esac