-
Notifications
You must be signed in to change notification settings - Fork 129
How to provide custom daemon default values and script locations
Martin Chalupa edited this page Jan 10, 2019
·
2 revisions
You can specify your custom default values which override values provided by the plugin itself.
Here is an example of DSL to achieve that:
daemonsDefaultDefinition {
useExtensionDefaults = true
user = 'customuser'
logCommand = 'customlog'
logDir = 'logs'
logUser = 'logger'
runLevels = []
autoStart = true
startSequence = 0
stopSequence = 0
}
You can also override default locations where final scripts should be generated using the following configuration. You can use the same template variables as in the script templates. They are listed here
daemonsDefaultDefinition {
runScriptLocation = '/custom/\${daemonName}/run'
runLogScriptLocation = '/custom/\${daemonName}/log/run'
initDScriptLocation = '/custom/\${daemonName}/init.d'
}