-1

I am Using Ubuntu Server and would like to know if it's possible to automatically restart services that go unresponsive. I am operating a standard LAMP stack and occasionally vital services need to be restarted but I want to do it in a programmatic way.

Wesley
  • 32,320
  • 9
  • 80
  • 116
chrisjlee
  • 955
  • 2
  • 11
  • 21
  • 1
    By "Restart a lamp stack" do you mean to programmatically restart the various services that make up the full LAMP stack? Like restarting Apache and MySQL? Or do you want to automatically restart Linux when it kernel panics? That brings up another point, what do you mean that it's "crashed" - are we talking full kernel panic? – Wesley Mar 29 '13 at 16:23
  • Yes restart each service programmatically – chrisjlee Mar 29 '13 at 18:26
  • I heavily modified your question in an attempt to keep it on-topic and avoid being closed as a shopping question. – Wesley Mar 29 '13 at 18:42

3 Answers3

1

To handle services that go into a crashed state, look at Munin and/or the Linux watchdog daemon.

Wesley
  • 32,320
  • 9
  • 80
  • 116
0

Supervisord and along the same lines Mozilla Circus are also interesting plays.

slashdot
  • 651
  • 5
  • 7
0

You can try to use monit to do this.

adamo
  • 6,867
  • 3
  • 29
  • 58