status --pidfile "$PIDFILE" --expect-user mysql mysqld
RETVAL=$?
;;
extendedstatus)
if [ "$EUID" = 0 ]; then
if [ -e "$LOCKFILE" ]; then
mysqladmin status
else
$0 status
fi
mysqladmin status # may bark if mysqld is down
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|adjust|status}"
RETVAL=1