stage/unit-create:new systemd unit config params

Added new systemd unit config : ConditionPathIsDirectory

Signed-off-by: Sayan Paul <paul.sayan@gmail.com>
This commit is contained in:
Sayan Paul 2024-03-15 12:14:26 +05:30 committed by Achilleas Koutsou
parent 155e24e4cb
commit 548d2a51ea
3 changed files with 13 additions and 0 deletions

View file

@ -15,6 +15,7 @@ of options:
- 'Unit' section
- 'Description' - string
- 'ConditionPathExists' - string
- 'ConditionPathIsDirectory' - string
- 'DefaultDependencies' - bool
- 'Requires' - [strings]
- 'Wants' - [strings]
@ -90,6 +91,12 @@ SCHEMA = r"""
"type": "string"
}
},
"ConditionPathIsDirectory": {
"type": "array",
"items": {
"type": "string"
}
},
"DefaultDependencies": {
"type": "boolean"
}

View file

@ -624,6 +624,9 @@
"DefaultDependencies": false,
"ConditionPathExists": [
"|!/etc/myfile"
],
"ConditionPathIsDirectory": [
"|!/etc/mydir"
]
},
"Service": {

View file

@ -624,6 +624,9 @@
"DefaultDependencies": false,
"ConditionPathExists": [
"|!/etc/myfile"
],
"ConditionPathIsDirectory": [
"|!/etc/mydir"
]
},
"Service": {