I use monit to make sure everything running fine, but monit daemon was also stopped.
I dont know how this be, and how to prevent monit daemon from stopped?
|
I use monit to make sure everything running fine, but monit daemon was also stopped. I dont know how this be, and how to prevent monit daemon from stopped? |
|||
|
|
|
On Ubuntu 9.10, /etc/inittab does not exist, because Ubuntu uses upstart instead of /sbin/init. So to achieve the same thing as answer #1 above we need an upstart script:
|
|||||
|
|
The best option I can think of for something that absolutely has to be run and must be restarted if it happens to die is to run the process out of init. You put an entry like the following in /etc/inittab:
Then restart init with:
Now anytime your daemon dies, it will automatically be "respawned" Edit: I am not familiar with Monit, but I happened to check their FAQ page, and they have detailed this specifically for monit. |
|||||||
|