mysql5: is it running and how can I tell?

paul beard paulbeard at gmail.com
Mon Jul 9 23:03:52 PDT 2007


My guess is that it isn't. And I don't know why. Using ps gives me this.

root        47   0.0  0.1    27884    816  ??  Ss   10:46PM
0:00.04/opt/local/bin/daemondo --label=mysql5 --start-cmd
/opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper start ;
--stop-cmd /opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper
stop ; --restart-cmd
/opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper restart ;
--pid=/opt/local/var/mysql.pid

running the script by hand gives me this.

/opt/local/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper start
Starting MySQL/opt/local/share/mysql5/mysql/mysql.server: line 159: kill:
(580) - No such process

the offending line 159?

    152 wait_for_pid () {
    153   i=0
    154   while test $i -ne $service_startup_timeout ; do
    155     sleep 1
    156     case "$1" in
    157       'created')
    158         test -s $pid_file && i='' && break
    159         kill -0 $2 || break # if the program goes away, stop waiting
    160         ;;
    161       'removed')

and I get these messages now:
Workaround Bonjour: Unknown error: 0

I don't think they are anything to do with mysql, perhaps apache2 since it
doesn't do zeroconf stuff like the vendor-supplied httpd.
-- 
Paul Beard / www.paulbeard.org/
<paulbeard at gmail.com/paulbeard at mac.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070709/8219e1b0/attachment.html


More information about the macports-users mailing list