L
L
lapka-admin2018-05-02 08:27:41
linux
lapka-admin, 2018-05-02 08:27:41

How to monitor the process on the webserver?

Let's say I wrote some script in python, bash or any other language, it starts and must constantly hang in the system as a process.
Question: how and what to follow - has it fallen off?
Another process is needed to monitor the first process)) But if the follower falls, he will also be able to do his job. How to restart the process correctly if it crashed, hung, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
protven, 2018-05-02
@lapka-admin

Lots of options. Systemd, package it in docker and write --restart=always, write your own manual watchdog script and run it with cron once a minute.
Plus, set up simple monitoring, such as monit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question