I have created a plist for MySQL that should start on demand on PowerMac G5 using Mac OS 10.5.7. However, when I look at the process list, I'm seeing the following:
116 ?? S 0:00.04 /bin/sh ./bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/darnoc-desktop.local.pid
143 ?? S 0:01.61 /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
Note: After rebooting the machine, I'm seeing the following:
sudo launchctl list | grep mysql
143 - 0x10c5d0.mysqld
143 - 0x10b430.mysqld
Now, when I perform the following on MacBook Pro:
sudo launchctl unload -w /opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist
sudo launchctl list | grep mysql
<no results>
sudo launchctl load -w /opt/local/etc/LaunchDaemons/org.macports.mysql5/org.macports.mysql5.plist
sudo launchctl list | grep mysql
232 - 0x100119dc0.anonymous.mysqld
202 - org.macports.mysql5
Would it be possible to put job in a bad state if you edit its plist file while it's loaded? At this time, I
can connect to the MySQL process without getting a connection error even when the job is loaded.
-Conrad