E
E
Evgeny Yablokov2015-09-29 17:07:10
Server equipment
Evgeny Yablokov, 2015-09-29 17:07:10

What is better to use to restart the server after the process is finished?

Good day.
There is a Linux server (Debian) running a certain process. For example, the encoder of video files is launched. You need to restart the server to start the new version of the software (runit / svdir). I can't think of anything other than checking the pid / pidof of the process via cron, and restarting the system if it doesn't.
Please tell me what better options you know.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2015-09-29
@GavriKos

Aren't shell scripts executed sequentially? Until the conversion command is executed, the script will not go any further. In the script, put the conversion command first, and after it, the reload command. In extreme cases, the same can be done in python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question