launchd

NSNotification to detect other program's crashes

I was planning on writing a small daemon that detected whether another app crashed, thinking all the while that the system would send an NSWorkspaceDidTerminateApplicationNotification, but this is not the case. Assuming that I do not want to create a launchd process to simply re-launch the crashed application, can I detect the crash an...

Launchd and user mappings

Hello. I'm trying to get MySQL to run under launchd so I set up a launchd item including a "UserName" key with "mysql" as value. I did this because when I start mysql I usually go: mysqld_safe --user=mysql. When I load it, I get: 10/22/10 11:13:02 AM com.apple.launchd[1] (com.mysql.mysqld463) Suspicious setup: User "mysql" maps t...