0

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?

1 Answers1

1

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.

Community
  • 1
  • 1
A. Coady
  • 54,452
  • 8
  • 34
  • 40