[MacPorts] #20365: MySQL plist file creating unmanaged launchd jobs on boot
MacPorts
noreply at macports.org
Sat Jul 18 22:30:17 PDT 2009
#20365: MySQL plist file creating unmanaged launchd jobs on boot
--------------------------------+-------------------------------------------
Reporter: conradwt@… | Owner: ryandesign@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: | Port: mysql5
--------------------------------+-------------------------------------------
Comment(by ryandesign@…):
I have never used "sudo launchctl list" before so I am unfamiliar with its
output. But on my Leopard system I get:
{{{
$ ps ax | grep mysql
529 ?? Ss 0:00.02 /mp/bin/daemondo --label=mysql5 --start-cmd
/mp/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper start ; --stop-
cmd /mp/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper stop ;
--restart-cmd /mp/etc/LaunchDaemons/org.macports.mysql5/mysql5.wrapper
restart ; --pid=none
538 ?? S 0:00.02 /bin/sh /mp/lib/mysql5/bin/mysqld_safe
--datadir=/mp/var/db/mysql5 --pid-file=/mp/var/db/mysql5/leopard.local.pid
559 ?? S 0:00.15 /mp/libexec/mysqld --basedir=/mp
--datadir=/mp/var/db/mysql5 --user=mysql --pid-
file=/mp/var/db/mysql5/leopard.local.pid
565 s000 S+ 0:00.00 grep mysql
$ sudo launchctl list | grep mysql
559 - 0x10c4e0.mysqld
559 - 0x10c0b0.mysqld
529 - org.macports.mysql5
$
}}}
The ps output at least seems normal to me for MacPorts. MacPorts uses
daemondo to wrap all startup processes. daemondo starts mysqld_safe, and
mysqld_safe starts mysqld. You start and stop MacPorts mysql5 using "sudo
port load mysql5-server" and "sudo port unload mysql5-server". Does this
work for you?
--
Ticket URL: <http://trac.macports.org/ticket/20365#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list