A
A
Alexander2020-01-05 20:56:26
ubuntu
Alexander, 2020-01-05 20:56:26

What can I do to restart services automatically?

A question arising from a problem!
We have VPS access via SSH, running services periodically crash: ntp, vsftpd, 3proxy.
The task is how to automatically track a non-working service and restart it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Sundukov, 2020-01-05
@Sartorio

From ready to run any supervisor in the spirit of supervisord, pm2. You can do it this way: Supervisord and forever are no longer needed. systemd

V
vreitech, 2020-01-06
@fzfx

add to the appropriate units in the [Service] section:
then make systemctl daemon-reload.
then restart the service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question