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:
parent
155e24e4cb
commit
548d2a51ea
3 changed files with 13 additions and 0 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -624,6 +624,9 @@
|
|||
"DefaultDependencies": false,
|
||||
"ConditionPathExists": [
|
||||
"|!/etc/myfile"
|
||||
],
|
||||
"ConditionPathIsDirectory": [
|
||||
"|!/etc/mydir"
|
||||
]
|
||||
},
|
||||
"Service": {
|
||||
|
|
|
|||
|
|
@ -624,6 +624,9 @@
|
|||
"DefaultDependencies": false,
|
||||
"ConditionPathExists": [
|
||||
"|!/etc/myfile"
|
||||
],
|
||||
"ConditionPathIsDirectory": [
|
||||
"|!/etc/mydir"
|
||||
]
|
||||
},
|
||||
"Service": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue