1
0
Fork 0

Commits vergleichen

...

3 Commits

Autor SHA1 Nachricht Datum
Sebastian Tobie 3d528fe1a6 version bump 2024-03-04 23:07:49 +01:00
Sebastian Tobie 548dacd614 some formatting 2024-03-04 23:07:40 +01:00
Sebastian Tobie 1755385a6b renamed Module 2024-03-04 23:07:27 +01:00
3 geänderte Dateien mit 9 neuen und 8 gelöschten Zeilen

Datei anzeigen

@ -1,7 +1,7 @@
---
namespace: sebastian
name: systemd
version: 0.4.0
version: 0.4.1
readme: README.md

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"
"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(
str,
True,
elements=str,
required=True,
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."),
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(
Types.dict(
elements=Types.dict(
name=Types.str(help="name of the Environment variable", required=True),
value=Types.str(help="value of the Environment variable", required=True),
),

Datei anzeigen

@ -14,7 +14,7 @@ __module_name__ = "TimerModule"
@installable
class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore
class TimerModule(SystemdUnitModule, SystemdReloadMixin): # type: ignore
"""Creates Timer units"""
name = "timer"
@ -245,4 +245,4 @@ short_description: Creates Timer units
"""
if __name__ == "__main__":
Module()()
TimerModule()()