S
S
Sild2015-05-25 15:45:16
linux
Sild, 2015-05-25 15:45:16

Why does systemd kill processes before ExecStop is processed?

In order not to be verbose, I will give a link to my own question on SO.
In a nutshell:
There is a service. Spawns many processes.
On reboot, during the execution of ExecStop, all the processes that I have to terminate myself are already killed.
At what point do processes send signals, and can this be avoided?
For example:

  1. specifying the Before=smth parameter in the [Unit] section
  2. indicate that the processes spawned by the service belong to this service and should not be killed just like that, for no reason
  3. ???

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question