I
I
Intelide2016-07-28 06:31:22
linux
Intelide, 2016-07-28 06:31:22

How to check linux services?

Good afternoon, there is a server, after a reboot, not all services are started, please tell me if it is possible to check with one command whether all services are running and those that are not running can be started?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
PrAw, 2016-07-28
@Intelide

Well, how would it be better to start with something else - why didn’t each specific service start?
The culprit may be, for example, the sequence of starting services. At the moment of launching the web server (I exaggerate), the network has not yet started, so it falls. Change the startup sequence and order.
You can take some kind of supervisor (supervisord?), which will already be engaged in the automatic restart of the fallen services (which it will start at startup).
Nagios/Zabbix can monitor the services of either a local or a remote computer, you can assign triggers that will do something when it crashes.

A
Anton Nagaets, 2016-07-28
@gr1mm3r

ps -aux and see what works
ps -aux | grep <daemon name> - watch a specific daemon.

V
Vladimir, 2016-07-28
@rostel

critical under monit,
if it cannot start it on its own, it will send a letter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question