Skip to content

Commit

Permalink
Merge pull request #82 from aleivag/more.unit.services
Browse files Browse the repository at this point in the history
adding extra propertied for unit signatures
  • Loading branch information
aleivag authored Apr 18, 2023
2 parents aded0e4 + e3bfffb commit 961e61f
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ the one you find pypi, but its the one in development.

0.13.0
=====
*
* adding coverage information
* changes tests to pystes
* adding support for pyproject.toml
* adding extra properties for unit

0.12.0
=====
Expand Down
52 changes: 51 additions & 1 deletion pystemd/systemd1/unit_signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@
b"RuntimeDirectory": b"as",
b"RuntimeDirectoryPreserve": b"s",
b"ConfigurationDirectory": b"as",
b"JoinsNamespaceOf": b"as",
b"PrivateDevices": b"b",
b"PrivateIPC": b"b",
b"PrivateMounts": b"b",
Expand All @@ -184,6 +183,8 @@
b"RestartForceExitStatus": b"(aiai)",
b"SuccessExitStatus": b"(aiai)",
b"Restart": b"s",
b"RestartUSec": b"t",
b"RestartSec": lambda _, value: (b"RestartUSec", b"t", int(value * 10**6)),
# Limits
b"LimitCPU": b"t",
b"LimitCPUSoft": b"t",
Expand Down Expand Up @@ -320,6 +321,55 @@
b"TriggerLimitBurst": b"u",
b"UID": b"u",
b"GID": b"u",
b"Id": b"s",
b"Names": b"as",
b"Following": b"s",
b"Upholds": b"as",
b"UpheldBy": b"as",
b"OnSuccess": b"as",
b"OnSuccessOf": b"as",
b"OnFailureOf": b"as",
b"PropagatesStopTo": b"as",
b"StopPropagatedFrom": b"as",
b"SliceOf": b"as",
b"AccessSELinuxContext": b"s",
b"LoadState": b"s",
b"ActiveState": b"s",
b"FreezerState": b"s",
b"SubState": b"s",
b"FragmentPath": b"s",
b"DropInPaths": b"as",
b"UnitFileState": b"s",
b"UnitFilePreset": b"s",
b"CanStart": b"b",
b"CanStop": b"b",
b"CanReload": b"b",
b"CanIsolate": b"b",
b"CanClean": b"as",
b"CanFreeze": b"b",
b"OnSuccesJobMode": b"s",
b"OnSuccessJobMode": b"s",
b"NeedDaemonReload": b"b",
b"Markers": b"as",
b"JobTimeoutUSec": b"t",
b"JobRunningTimeoutUSec": b"t",
b"ConditionResult": b"b",
b"AssertResult": b"b",
b"Transient": b"b",
b"Perpetual": b"b",
b"StartLimitIntervalUSec": b"t",
b"StartLimitBurst": b"u",
b"StartLimitAction": b"s",
b"FailureActionExitStatus": b"i",
b"SuccessActionExitStatus": b"i",
b"InvocationID": b"ay",
b"Refs": b"as",
b"RequiresOverridable": b"as",
b"RequisiteOverridable": b"as",
b"RequiredByOverridable": b"as",
b"RequisiteOfOverridable": b"as",
b"StartLimitInterval": b"t",
b"StartLimitIntervalSec": b"t",
# Extra
b"_custom": lambda _, value: value,
}
Expand Down

0 comments on commit 961e61f

Please sign in to comment.