Skip to content

Commit 961e61f

Browse files
authored
Merge pull request #82 from aleivag/more.unit.services
adding extra propertied for unit signatures
2 parents aded0e4 + e3bfffb commit 961e61f

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ the one you find pypi, but its the one in development.
66

77
0.13.0
88
=====
9-
*
9+
* adding coverage information
10+
* changes tests to pystes
11+
* adding support for pyproject.toml
12+
* adding extra properties for unit
1013

1114
0.12.0
1215
=====

pystemd/systemd1/unit_signatures.py

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@
163163
b"RuntimeDirectory": b"as",
164164
b"RuntimeDirectoryPreserve": b"s",
165165
b"ConfigurationDirectory": b"as",
166-
b"JoinsNamespaceOf": b"as",
167166
b"PrivateDevices": b"b",
168167
b"PrivateIPC": b"b",
169168
b"PrivateMounts": b"b",
@@ -184,6 +183,8 @@
184183
b"RestartForceExitStatus": b"(aiai)",
185184
b"SuccessExitStatus": b"(aiai)",
186185
b"Restart": b"s",
186+
b"RestartUSec": b"t",
187+
b"RestartSec": lambda _, value: (b"RestartUSec", b"t", int(value * 10**6)),
187188
# Limits
188189
b"LimitCPU": b"t",
189190
b"LimitCPUSoft": b"t",
@@ -320,6 +321,55 @@
320321
b"TriggerLimitBurst": b"u",
321322
b"UID": b"u",
322323
b"GID": b"u",
324+
b"Id": b"s",
325+
b"Names": b"as",
326+
b"Following": b"s",
327+
b"Upholds": b"as",
328+
b"UpheldBy": b"as",
329+
b"OnSuccess": b"as",
330+
b"OnSuccessOf": b"as",
331+
b"OnFailureOf": b"as",
332+
b"PropagatesStopTo": b"as",
333+
b"StopPropagatedFrom": b"as",
334+
b"SliceOf": b"as",
335+
b"AccessSELinuxContext": b"s",
336+
b"LoadState": b"s",
337+
b"ActiveState": b"s",
338+
b"FreezerState": b"s",
339+
b"SubState": b"s",
340+
b"FragmentPath": b"s",
341+
b"DropInPaths": b"as",
342+
b"UnitFileState": b"s",
343+
b"UnitFilePreset": b"s",
344+
b"CanStart": b"b",
345+
b"CanStop": b"b",
346+
b"CanReload": b"b",
347+
b"CanIsolate": b"b",
348+
b"CanClean": b"as",
349+
b"CanFreeze": b"b",
350+
b"OnSuccesJobMode": b"s",
351+
b"OnSuccessJobMode": b"s",
352+
b"NeedDaemonReload": b"b",
353+
b"Markers": b"as",
354+
b"JobTimeoutUSec": b"t",
355+
b"JobRunningTimeoutUSec": b"t",
356+
b"ConditionResult": b"b",
357+
b"AssertResult": b"b",
358+
b"Transient": b"b",
359+
b"Perpetual": b"b",
360+
b"StartLimitIntervalUSec": b"t",
361+
b"StartLimitBurst": b"u",
362+
b"StartLimitAction": b"s",
363+
b"FailureActionExitStatus": b"i",
364+
b"SuccessActionExitStatus": b"i",
365+
b"InvocationID": b"ay",
366+
b"Refs": b"as",
367+
b"RequiresOverridable": b"as",
368+
b"RequisiteOverridable": b"as",
369+
b"RequiredByOverridable": b"as",
370+
b"RequisiteOfOverridable": b"as",
371+
b"StartLimitInterval": b"t",
372+
b"StartLimitIntervalSec": b"t",
323373
# Extra
324374
b"_custom": lambda _, value: value,
325375
}

0 commit comments

Comments
 (0)