问题
How do I install Tomcat as a daemon on OS X? It should run even when a user is not logged on.
I could probably survive installing Tomcat for a single users and having it run at log in, for now. But long term I need it installed and running as a service on boot.
回答1:
You could write your own LaunchDaemon script for it.
Launch Services can be used to set up user or system-based startup.
回答2:
See Updated for 2009 at the bottom of the page for details on what is needed
回答3:
What Matthew and Objects said, but remember if you are integrating with launchd, the script should not fork and exit. See Daemon Requirements
来源:https://stackoverflow.com/questions/1157844/how-to-intall-tomcat-as-a-daemon-on-os-x