Reanimated processes (I can't get mysql to stay dead)

Discussion in 'macOS' started by kylos, Jun 10, 2008.

  1. kylos macrumors 6502a

    kylos

    Joined:
    Nov 8, 2002
    Location:
    MI
    #1
    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.
     
  2. misterredman macrumors 6502a

    misterredman

    Joined:
    Oct 3, 2007
    #2
  3. Infrared macrumors 68000

    Infrared

    Joined:
    Mar 28, 2007
    #3
    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 :)
     

Share This Page