In article <>,
Tom Davies <> wrote:
> The default tomcat distribution has startup.sh and shutdown.sh shell
> scripts. The startup.sh script returns once it has started Tomcat.
>
> Is there any way to:
>
> - use launchd with a process which forks and terminates? (I know the
> launchd docs specifically say that launchd managed processes shouldn't
> do that, so I'm assuming no, but thought I would ask)
I think the "RunAtLoad" setting would handle this. However...
> - use launchd with a process which needs special shutdown handling?
I don't think so. I see that Apache has yet to be migrated to launchd
management. If you're familiar with Apache at all, the startup item
configuration at /System/Library/StartupItems/Apache/ would probably be
a useful example of doing it the "old fashioned" way.
--
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 2.0: Delocalize, Repair Permissions, lots more.
See
http://www.atomicbird.com/