• Increase font size
  • Default font size
  • Decrease font size
Home Software SysFunc Sysfunc Reference Guide - Services

Sysfunc Reference Guide - Services

E-mail Print
Read : 9,595 times
(1 vote, average 5.00 out of 5)
Article Index
Sysfunc Reference Guide
Configuration parameters
System database
Disk management
Error handling
File manipulation
Filesystems
IP V4 addresses
Kernel
Logical volume manager
Miscellaneous
Message display
User interaction
Network
OS
File backup
Software packages
Services
Time and date
Temporary file management
Users and groups
Vmware-specific
Function index
All Pages

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

$*Service names

Returns

Always 0

Displays

Info msg

svc_enable

Enable service start/stop at system boot/shutdown

Arguments

$*Service names

Returns

Always 0

Displays

Info msg

svc_install

Install a service script (script to start/stop a service)

Arguments

$1Source script
$2Service 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

$1Service name

Returns

0 if enabled, 1 if diasabled, 2 if not installed

Displays

Nothing

svc_is_installed

Check if a service script is installed

Arguments

$1Service name

Returns

0 is installed, 1 if not

Displays

Nothing

svc_is_up

Check if a service is running

Arguments

$1Service name

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

$1Service name

Returns

Always 0

Displays

Script path

svc_start

Start a service

'noexec' does not disable starting/stopping services.

Arguments

$1Service name

Returns

Return code from script execution

Displays

Output from service script

svc_stop

Stop a service

'noexec' does not disable starting/stopping services.

Arguments

$1Service name

Returns

Return code from script execution

Displays

Output from service script

svc_uninstall

Uninstall a service script (script to start/stop a service)

Arguments

$1Service name

Returns

Always 0

Displays

Info msg

 

Please login or register to add a comment