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
|
- 'Unit' section
|
||||||
- 'Description' - string
|
- 'Description' - string
|
||||||
- 'ConditionPathExists' - string
|
- 'ConditionPathExists' - string
|
||||||
|
- 'ConditionPathIsDirectory' - string
|
||||||
- 'DefaultDependencies' - bool
|
- 'DefaultDependencies' - bool
|
||||||
- 'Requires' - [strings]
|
- 'Requires' - [strings]
|
||||||
- 'Wants' - [strings]
|
- 'Wants' - [strings]
|
||||||
|
|
@ -90,6 +91,12 @@ SCHEMA = r"""
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ConditionPathIsDirectory": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
"DefaultDependencies": {
|
"DefaultDependencies": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -624,6 +624,9 @@
|
||||||
"DefaultDependencies": false,
|
"DefaultDependencies": false,
|
||||||
"ConditionPathExists": [
|
"ConditionPathExists": [
|
||||||
"|!/etc/myfile"
|
"|!/etc/myfile"
|
||||||
|
],
|
||||||
|
"ConditionPathIsDirectory": [
|
||||||
|
"|!/etc/mydir"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Service": {
|
"Service": {
|
||||||
|
|
|
||||||
|
|
@ -624,6 +624,9 @@
|
||||||
"DefaultDependencies": false,
|
"DefaultDependencies": false,
|
||||||
"ConditionPathExists": [
|
"ConditionPathExists": [
|
||||||
"|!/etc/myfile"
|
"|!/etc/myfile"
|
||||||
|
],
|
||||||
|
"ConditionPathIsDirectory": [
|
||||||
|
"|!/etc/mydir"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Service": {
|
"Service": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue