How to make sure an application keeps running on Linux

前端 未结 16 1371
清歌不尽
清歌不尽 2020-11-28 18:51

I\'m trying to ensure a script remains running on a development server. It collates stats and provides a web service so it\'s supposed to persist, yet a few times a day, it

16条回答
  •  没有蜡笔的小新
    2020-11-28 19:32

    The supervise tool from daemontools would be my preference - but then everything Dan J Bernstein writes is my preference :)

    http://cr.yp.to/daemontools/supervise.html

    You have to create a particular directory structure for your application startup script, but it's very simple to use.

提交回复
热议问题