mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 18:12:34 +09:00
Document the logic around X-NotSocketActivated in the manual
This commit is contained in:
parent
1fed2312e7
commit
d95a8f5a13
1 changed files with 10 additions and 5 deletions
|
@ -58,11 +58,16 @@ checks:
|
||||||
before the activation script is run. This behavior is different when the
|
before the activation script is run. This behavior is different when the
|
||||||
service is socket-activated, as outlined in the following steps.
|
service is socket-activated, as outlined in the following steps.
|
||||||
|
|
||||||
- The last thing that is taken into account is whether the unit is a service
|
- The last thing that is taken into account is whether the unit is a
|
||||||
and socket-activated. If `X-StopIfChanged` is **not** set, the service
|
service and socket-activated. A correspondence between a
|
||||||
is **restart**ed with the others. If it is set, both the service and the
|
`.service` and its `.socket` unit is detected automatically, but
|
||||||
socket are **stop**ped and the socket is **start**ed, leaving socket
|
services can **opt out** of that detection by setting
|
||||||
activation to start the service when it's needed.
|
`X-NotSocketActivated` to `yes` in their `[Service]`
|
||||||
|
section. Otherwise, if `X-StopIfChanged` is **not** set, the
|
||||||
|
service is **restart**ed with the others. If it is set, both the
|
||||||
|
service and the socket are **stop**ped and the socket is
|
||||||
|
**start**ed, leaving socket activation to start the service when
|
||||||
|
it's needed.
|
||||||
|
|
||||||
## Sysinit reactivation {#sec-sysinit-reactivation}
|
## Sysinit reactivation {#sec-sysinit-reactivation}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue