简体   繁体   中英

How to deploy a standalone CherryPy process?

I'm currently preparing to deploy a stand-alone CherryPy app. While I could just hack together a boot script and shoehorn it into the system's startup sequence, I'd rather find a more elegant solution.

What I need to do is:

  • Start the app as a daemon during boot
  • Restart it if it crashes
  • Monitor CPU/memory usage

I'm sure there must be an existing solution for this. Any suggestions?

Specific to cherrypy, it has daemonizer and pidfile plugins. And the cherryd script supports them as command-line options.

More generally, monit and supervisord are popular choices for process monitoring. See this question .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM