Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kylos

macrumors 6502a
Original poster
I'm trying to apply some changes to mysql, but can't get mysql shut down to restart it with the new changes. Every time I shut it down it restarts automatically before I can restart it manually with the new settings (new process id).

If anybody knows how to inhibit this behavior so I can reconfigure mysql, I'd appreciate it. It appears that mysql is launched by StartupItems, but I have no idea how to use that information to disable mysql from restarting.
 
I'm trying to apply some changes to mysql, but can't get mysql shut down to restart it with the new changes. Every time I shut it down it restarts automatically before I can restart it manually with the new settings (new process id).

If anybody knows how to inhibit this behavior so I can reconfigure mysql, I'd appreciate it. It appears that mysql is launched by StartupItems, but I have no idea how to use that information to disable mysql from restarting.

As the other poster said: launchd. launchd can restart
processes that terminate.

http://developer.apple.com/macosx/launchd.html
http://en.wikipedia.org/wiki/

Configuration scripts are in:

/System/Library/LaunchAgents/
/System/Library/LaunchDaemons/
/Library/LaunchAgents/
/Library/LaunchDaemons/

launchd can be controlled using launchctl, e.g.,

'sudo launchctl unload /Library/LaunchDaemons/com.mysql.mysqld.plist'

That might work for you 🙂
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.