Commits vergleichen
Keine gemeinsamen Commits. "3d528fe1a6e03c537669f7a70640b7a20ab82725" und "d64aeaa4fa0dc9d3f0f18d9af9ef18bf91c81138" haben vollständig unterschiedliche Historien.
3d528fe1a6
...
d64aeaa4fa
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
namespace: sebastian
|
namespace: sebastian
|
||||||
name: systemd
|
name: systemd
|
||||||
version: 0.4.1
|
version: 0.4.0
|
||||||
|
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
||||||
|
|
|
@ -31,19 +31,18 @@ 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(elements=str, help="command or list of commands that are started before the main command"),
|
pre=Types.list(str, help="command or list of commands that are started before the main command(Types.str)"),
|
||||||
start=Types.list(
|
start=Types.list(
|
||||||
elements=str,
|
str,
|
||||||
required=True,
|
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(
|
||||||
elements=str,
|
str, help="List of file that are containing environment variables. They are evaluated before each pre/start/post command"
|
||||||
help="List of file that are containing environment variables. They are evaluated before each pre/start/post command",
|
|
||||||
),
|
),
|
||||||
environment=Types.list(
|
environment=Types.list(
|
||||||
elements=Types.dict(
|
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 TimerModule(SystemdUnitModule, SystemdReloadMixin): # type: ignore
|
class Module(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__":
|
||||||
TimerModule()()
|
Module()()
|
||||||
|
|
Laden…
In neuem Issue referenzieren