{
echo -n "Starting mpxyd daemon:"
- daemon --check $prog --pidfile "${pidfile}" $execpath
+ daemon --check $prog --pidfile "$pidfile" $execpath
RC=$?
- [ "$RC" -eq "0" ] && touch $subsys
+ [ "$RC" -eq "0" ] && touch $subsys 2>/dev/null
echo
return $RC
{
echo -n "Stopping mpxyd daemon:"
- killproc -p $pidfile $execpath
+ killproc -p "$pidfile" $execpath
RC=$?
rm -f $subsys
echo
_status()
{
- status -p "${pidfile}" -l "${subsys}" ${prog}
+ status -p "$pidfile" -l $subsys $prog
}
restart ()
return 2
}
-case $1 in
- start|stop|restart|condrestart|try-restart|force-reload)
- [ `id -u` != "0" ] && exit 4 ;;
-esac
-
case $1 in
start) start; RC=$? ;;
stop) stop; RC=$? ;;