Commits vergleichen
3 Commits
d64aeaa4fa
...
3d528fe1a6
Autor | SHA1 | Datum |
---|---|---|
Sebastian Tobie | 3d528fe1a6 | |
Sebastian Tobie | 548dacd614 | |
Sebastian Tobie | 1755385a6b |
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
namespace: sebastian
|
namespace: sebastian
|
||||||
name: systemd
|
name: systemd
|
||||||
version: 0.4.0
|
version: 0.4.1
|
||||||
|
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
||||||
|
|
|
@ -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),
|
||||||
),
|
),
|
||||||
|
|
|
@ -14,7 +14,7 @@ __module_name__ = "TimerModule"
|
||||||
|
|
||||||
|
|
||||||
@installable
|
@installable
|
||||||
class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore
|
class TimerModule(SystemdUnitModule, SystemdReloadMixin): # type: ignore
|
||||||
"""Creates Timer units"""
|
"""Creates Timer units"""
|
||||||
|
|
||||||
name = "timer"
|
name = "timer"
|
||||||
|
@ -245,4 +245,4 @@ short_description: Creates Timer units
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
Module()()
|
TimerModule()()
|
||||||
|
|
Laden…
In neuem Issue referenzieren