Page 18 of 23
svc_base
Display the base directory of service scripts
Arguments
None
Returns
Always 0
Displays
String
svc_disable
Disable service start/stop at system boot/shutdown
Arguments
Returns
Always 0
Displays
Info msg
svc_enable
Enable service start/stop at system boot/shutdown
Arguments
Returns
Always 0
Displays
Info msg
svc_install
Install a service script (script to start/stop a service)
Arguments
$1 | Source script |
$2 | Service name |
Returns
Always 0
Displays
Info msg
svc_is_enabled
Check if a service is enabled on boot
On Linux, check for current runlevel.
On Solaris, check for level 3.
Arguments
Returns
0 if enabled, 1 if diasabled, 2 if not installed
Displays
Nothing
svc_is_installed
Check if a service script is installed
Arguments
Returns
0 is installed, 1 if not
Displays
Nothing
svc_is_up
Check if a service is running
Arguments
Returns
0 if service is running, 1 if stopped, 2 if not installed
Displays
Nothing
svc_script
Display the full path of the script corresponding to a given service
Arguments
Returns
Always 0
Displays
Script path
svc_start
Start a service
'noexec' does not disable starting/stopping services.
Arguments
Returns
Return code from script execution
Displays
Output from service script
svc_stop
Stop a service
'noexec' does not disable starting/stopping services.
Arguments
Returns
Return code from script execution
Displays
Output from service script
svc_uninstall
Uninstall a service script (script to start/stop a service)
Arguments
Returns
Always 0
Displays
Info msg