diff options
author | esendjer <esendjer@gmail.com> | 2022-01-19 14:56:37 +0500 |
---|---|---|
committer | esendjer <esendjer@gmail.com> | 2022-01-19 21:46:16 +0500 |
commit | b9a2d8698a22c4b267e252caad56d8b31fcadd38 (patch) | |
tree | f5506687b939bdc29e2324b1335d3f9c4632f340 /pkg/domain/entities | |
parent | 094b11cbcb528a7d120c31402a1bcd9c82d84938 (diff) | |
download | podman-b9a2d8698a22c4b267e252caad56d8b31fcadd38.tar.gz podman-b9a2d8698a22c4b267e252caad56d8b31fcadd38.tar.bz2 podman-b9a2d8698a22c4b267e252caad56d8b31fcadd38.zip |
Handlers for `generate systemd` with custom dependencies
This commit includes:
* Handlers for generate systemd unit
with manually defined dependencies such as:
Wants=, After= and Requires=
* The new unit and e2e tests for checking generated systemd units
for container and pod with custom dependencies
* Documented descriptions for custom dependencies options
Signed-off-by: Eugene (Evgenii) Shubin <esendjer@gmail.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/generate.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/domain/entities/generate.go b/pkg/domain/entities/generate.go index e431a70af..73dd64ecd 100644 --- a/pkg/domain/entities/generate.go +++ b/pkg/domain/entities/generate.go @@ -26,6 +26,12 @@ type GenerateSystemdOptions struct { NoHeader bool // TemplateUnitFile - make use of %i and %I to differentiate between the different instances of the unit TemplateUnitFile bool + // Wants - systemd wants list for the container or pods + Wants []string + // After - systemd after list for the container or pods + After []string + // Requires - systemd requires list for the container or pods + Requires []string } // GenerateSystemdReport |