scripts: Include command exit status information in start/stop log messages.

This commit is contained in:
tgoff0 2015-01-28 02:16:01 +00:00
parent e0894a321e
commit 398b8c4345

View file

@ -76,7 +76,7 @@ if [ $DEB = yes ]; then
log_daemon_msg "$@" log_daemon_msg "$@"
} }
endmsg () { endmsg () {
echo "" log_end_msg "$@"
} }
else else
daemon="daemon /usr/bin/python" daemon="daemon /usr/bin/python"
@ -95,7 +95,7 @@ start() {
msg "Starting core-daemon" msg "Starting core-daemon"
$daemon $cored -d $daemon $cored -d
RETVAL=$? RETVAL=$?
endmsg endmsg $RETVAL
return $RETVAL return $RETVAL
} }
@ -104,7 +104,7 @@ stop() {
$killproc -p ${PIDFILE} $cored $killproc -p ${PIDFILE} $cored
RETVAL=$? RETVAL=$?
rm -f ${PIDFILE} rm -f ${PIDFILE}
endmsg endmsg $RETVAL
return $RETVAL return $RETVAL
} }