Service manipulation
List of Global Functions
Adjust - Adjust runlevels in which the service runs.
Disable - Disable service
Enable - Enable service
Enabled - Check if service is enabled
Error - Error Message
Finetune - Set service to run in selected runlevels.
FullInfo - Get service info and find out whether service is running.
Info - Get service info without peeking if service runs.
Reload - Reload service
Restart - Restart service
RunInitScript - Run init script.
RunInitScriptOutput - Run init script and return output
RunInitScriptWithTimeOut - Run init script with a time-out.
Start - Start service
Status - Get service status.
Stop - Stop service
List of Global Variables
Adjust runlevels in which the service runs.
Function parameters
string name
string action
Return value
boolean - success state
Disable service
Function parameters
string service
Return value
boolean - true if operation is successful
Enable service
Function parameters
string service
Return value
boolean - true if operation is successful
Check if service is enabled
Function parameters
string name
Return value
boolean - true if service is set to run in any runlevel
Set service to run in selected runlevels.
Function parameters
string name
list rl
Return value
boolean - success state
Get service info and find out whether service is running.
Function parameters
string name
Return value
map - service map or empty map ($[])
Get service info without peeking if service runs.
Function parameters
string name
Return value
map - Service information or empty map ($[])
Reload service
Function parameters
string service
Return value
boolean - true if operation is successful
Restart service
Function parameters
string service
Return value
boolean - true if operation is successful
Run init script.
Function parameters
string name
string param
Return value
integer - exit value
Run init script and return output
Function parameters
string name
string param
Return value
map - A map of $[ "stdout" : "...", "stderr" : "...", "exit" : int]
Run init script with a time-out.
Function parameters
string name
string param
Return value
integer - exit value
Start service
Function parameters
string service
Return value
boolean - true if operation is successful
Get service status.
Function parameters
string name
Return value
integer - init script exit status or -1 if it does not exist