1
0
Fork 0

some formatting

Dieser Commit ist enthalten in:
Sebastian Tobie 2024-03-04 23:07:40 +01:00
Ursprung 1755385a6b
Commit 548dacd614
1 geänderte Dateien mit 6 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -31,18 +31,19 @@ class Module(SystemdUnitModule, SystemdReloadMixin):
"notify and notify-reload notify systemd about the start up via sd_notify. notify-reload needs also inform systemd on reloads and when it is ready again after an reload.\n" "notify and notify-reload notify systemd about the start up via sd_notify. notify-reload needs also inform systemd on reloads and when it is ready again after an reload.\n"
"idle is similar to simple, but it can delay the start up by a few seconds.", "idle is similar to simple, but it can delay the start up by a few seconds.",
), ),
pre=Types.list(str, help="command or list of commands that are started before the main command(Types.str)"), pre=Types.list(elements=str, help="command or list of commands that are started before the main command"),
start=Types.list( start=Types.list(
str, elements=str,
True, required=True,
help="command or list of commands that are started as main programm. Multiple commands are only allowed in a oneshot command", help="command or list of commands that are started as main programm. Multiple commands are only allowed in a oneshot command",
), ),
post=Types.list(str, help="Command or list of commands that are started after the main command(s) stopped without problems."), post=Types.list(str, help="Command or list of commands that are started after the main command(s) stopped without problems."),
environmentfile=Types.list( environmentfile=Types.list(
str, help="List of file that are containing environment variables. They are evaluated before each pre/start/post command" elements=str,
help="List of file that are containing environment variables. They are evaluated before each pre/start/post command",
), ),
environment=Types.list( environment=Types.list(
Types.dict( elements=Types.dict(
name=Types.str(help="name of the Environment variable", required=True), name=Types.str(help="name of the Environment variable", required=True),
value=Types.str(help="value of the Environment variable", required=True), value=Types.str(help="value of the Environment variable", required=True),
), ),