quadlet: add support for the UpheldBy option in the Install section

This adds support for the UpheldBy option in quadlet files. The UpheldBy option
is the counterpart to the Upholds option added in systemd v249 and is
similar to the existing WantedBy and RequiredBy options.

See https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Upholds=.

Signed-off-by: John Schug <john.ips.schug@gmail.com>
This commit is contained in:
John Schug
2025-03-26 16:49:23 -07:00
parent 71ed3f0fa9
commit a0cae65c13
3 changed files with 21 additions and 16 deletions

View File

@ -129,7 +129,7 @@ For example, to start a container on boot, add something like this to the file:
WantedBy=default.target
```
Currently, only the `Alias`, `WantedBy` and `RequiredBy` keys are supported.
Currently, only the `Alias`, `WantedBy`, `RequiredBy`, and `UpheldBy` keys are supported.
The Install section can be part of the main file, or it can be in a
separate drop-in file as described above. The latter allows you to