[MacPorts] #20365: MySQL plist file creating unmanaged launchd jobs on boot

MacPorts noreply at macports.org
Wed Jul 22 21:07:32 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                 
--------------------------------+-------------------------------------------
Description changed by ryandesign@…:

Old description:

> I'm using Mac OS 10.5.7 and launchd plist script for MySQL Server 5.0.81
> appears to be creating unmanaged jobs.  For example, the
>
> sudo launchctl list | grep mysql
>
> 137     -       0x10b050.mysqld
> 137     -       0x10a2a0.mysqld
>
> Note:  The above are anonymous jobs on Mac OS 10.5.7 that
>             cannot be unloaded.
>
> However, there's no way to manage these jobs because there's no
> associated plist file to unload them.  At this time, the process is
> running:
>
> ps ax | grep mysql
>
> 98   ??  S      0:00.02 /bin/sh ./bin/mysqld_safe
> --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/darnoc-
> desktop.local.pid
>
> 137   ??  S      0:01.06 /usr/local/mysql/bin/mysqld
> --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql
> --pid-file=/usr/local/mysql/data/darnoc-desktop.local.pid
>
> Thus, Damien Sorresso recommends the following:
>
> add a "-launchd" flag to the startup options

New description:

 I'm using Mac OS 10.5.7 and launchd plist script for MySQL Server 5.0.81
 appears to be creating unmanaged jobs.  For example, the

 {{{
 sudo launchctl list | grep mysql
 137     -       0x10b050.mysqld
 137     -       0x10a2a0.mysqld
 }}}

 Note:  The above are anonymous jobs on Mac OS 10.5.7 that cannot be
 unloaded.

 However, there's no way to manage these jobs because there's no associated
 plist file to unload them.  At this time, the process is running:

 {{{
 ps ax | grep mysql
 98   ??  S      0:00.02 /bin/sh ./bin/mysqld_safe
 --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/darnoc-
 desktop.local.pid
 137   ??  S      0:01.06 /usr/local/mysql/bin/mysqld
 --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql
 --pid-file=/usr/local/mysql/data/darnoc-desktop.local.pid
 }}}

 Thus, Damien Sorresso recommends the following:

 add a "-launchd" flag to the startup options

--

-- 
Ticket URL: <http://trac.macports.org/ticket/20365#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list