How to intall Tomcat as a daemon on OS X?

守給你的承諾、 提交于 2020-01-04 06:23:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!