new options for system_service
Dieser Commit ist enthalten in:
Ursprung
8ee18934a9
Commit
aa53ad470a
|
@ -1,10 +1,18 @@
|
||||||
=====================================
|
=====================================
|
||||||
sebastian.systemd 0.4.2 Release Notes
|
sebastian.systemd 0.4.3 Release Notes
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
.. contents:: Topics
|
.. contents:: Topics
|
||||||
|
|
||||||
|
|
||||||
|
v0.4.3
|
||||||
|
======
|
||||||
|
|
||||||
|
Changelog
|
||||||
|
---------
|
||||||
|
|
||||||
|
added new options to system_service
|
||||||
|
|
||||||
v0.4.2
|
v0.4.2
|
||||||
======
|
======
|
||||||
|
|
||||||
|
|
|
@ -70,3 +70,7 @@ releases:
|
||||||
release_date: "2024-03-09"
|
release_date: "2024-03-09"
|
||||||
changes:
|
changes:
|
||||||
release_summary: upgraded to the new method used by sebastian.base
|
release_summary: upgraded to the new method used by sebastian.base
|
||||||
|
0.4.3:
|
||||||
|
release_date: "2024-03-09"
|
||||||
|
changes:
|
||||||
|
release_summary: added new options to system_service
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
namespace: sebastian
|
namespace: sebastian
|
||||||
name: systemd
|
name: systemd
|
||||||
version: 0.4.2
|
version: 0.4.3
|
||||||
|
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,8 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore[misc]
|
||||||
required=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",
|
||||||
),
|
),
|
||||||
|
stop=Types.str(help="command that is started to stop the main program."),
|
||||||
|
remain=Types.bool(help="should the service remain as started after the command exited"),
|
||||||
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,
|
elements=str,
|
||||||
|
@ -86,6 +88,11 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore[misc]
|
||||||
statedirectory=Types.str(
|
statedirectory=Types.str(
|
||||||
help="creates an unit specific state directory in /var/lib and sets the env var STATE_DIRECTORY with the path to it. Its cleaned up after the unit is stopped"
|
help="creates an unit specific state directory in /var/lib and sets the env var STATE_DIRECTORY with the path to it. Its cleaned up after the unit is stopped"
|
||||||
),
|
),
|
||||||
|
runtimedirectory=Types.str(
|
||||||
|
help="creates an unit specific runtime directory in /run and sets the env var RUNTIME_DIRECTORY with the path to it. Its cleaned up after the unit is stopped"
|
||||||
|
),
|
||||||
|
restart=Types.str(),
|
||||||
|
restartsec=Types.str(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -105,6 +112,7 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore[misc]
|
||||||
type="Type",
|
type="Type",
|
||||||
pre="ExecStartPre",
|
pre="ExecStartPre",
|
||||||
start="ExecStart",
|
start="ExecStart",
|
||||||
|
stop="ExecStop",
|
||||||
post="ExecStartPost",
|
post="ExecStartPost",
|
||||||
serviceuser="User",
|
serviceuser="User",
|
||||||
servicegroup="Group",
|
servicegroup="Group",
|
||||||
|
@ -118,7 +126,11 @@ class Module(SystemdUnitModule, SystemdReloadMixin): # type: ignore[misc]
|
||||||
execpath="ExecPaths",
|
execpath="ExecPaths",
|
||||||
noexecpath="NoExecPaths",
|
noexecpath="NoExecPaths",
|
||||||
statedirectory="StateDirectory",
|
statedirectory="StateDirectory",
|
||||||
|
runtimedirectory="RuntimeDirectory",
|
||||||
nonewprivileges="NoNewPriviledges",
|
nonewprivileges="NoNewPriviledges",
|
||||||
|
remain="RemainAfterExit",
|
||||||
|
restart="Restart",
|
||||||
|
restartsec="RestartSec",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
return "[Service]\n" + "".join(params)
|
return "[Service]\n" + "".join(params)
|
||||||
|
@ -268,6 +280,11 @@ options:
|
||||||
additionally /etc and if strict all except /proc, /sys and /dev
|
additionally /etc and if strict all except /proc, /sys and /dev
|
||||||
required: false
|
required: false
|
||||||
type: str
|
type: str
|
||||||
|
remain:
|
||||||
|
description:
|
||||||
|
- should the service remain as started after the command exited
|
||||||
|
required: false
|
||||||
|
type: bool
|
||||||
required_by:
|
required_by:
|
||||||
default: []
|
default: []
|
||||||
description:
|
description:
|
||||||
|
@ -283,6 +300,12 @@ options:
|
||||||
elements: str
|
elements: str
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
|
restart:
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
|
restartsec:
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
ropath:
|
ropath:
|
||||||
default: []
|
default: []
|
||||||
description:
|
description:
|
||||||
|
@ -290,6 +313,12 @@ options:
|
||||||
elements: path
|
elements: path
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
|
runtimedirectory:
|
||||||
|
description:
|
||||||
|
- creates an unit specific runtime directory in /run and sets the env var RUNTIME_DIRECTORY
|
||||||
|
with the path to it. Its cleaned up after the unit is stopped
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
rwpath:
|
rwpath:
|
||||||
default: []
|
default: []
|
||||||
description:
|
description:
|
||||||
|
@ -322,6 +351,11 @@ options:
|
||||||
with the path to it. Its cleaned up after the unit is stopped
|
with the path to it. Its cleaned up after the unit is stopped
|
||||||
required: false
|
required: false
|
||||||
type: str
|
type: str
|
||||||
|
stop:
|
||||||
|
description:
|
||||||
|
- command that is started to stop the main program.
|
||||||
|
required: false
|
||||||
|
type: str
|
||||||
type:
|
type:
|
||||||
choices:
|
choices:
|
||||||
- simple
|
- simple
|
||||||
|
|
Laden…
In neuem Issue referenzieren