HELIOS Base G8 User manual (Version 5.0.0)  
 

14 The HELIOS Service Controller

The HELIOS Service Controller “srvsrv” is a feature, which starts, stops and monitors all HELIOS server processes, such as “afpsrv”, “pcshare”, “lpd”, etc. (the figure on the next page shows HELIOS’ three levels of service reliability).

Separate processes

This feature prevents a possible server process failure for a single client from bringing down all the served clients on the network. By having a separate process for each client computer, each user is effectively insulated from other users. The more users on the network, the more important this feature.

Automatic process restart on failure

The HELIOS Service Controller monitors all processes which have been started on the server. In case a process should fail, the HELIOS Service Controller restarts this process after a short time.

14.1 srvutil

“srvutil” is a server utility which lets you administer single HELIOS services, e.g. starting, stopping, reconfiguring or just status monitoring. Actually, it passes requests to the “srvsrv” daemon which is described above.

The following options can be used with the “srvutil” command, where [-f] means forced and [-r] recursive:

srvutil start all                        (root only) 
srvutil start [-r] [-f] service...       (root only) 
srvutil stop all                         (root only) 
srvutil stop [-r] [-f] service...        (root only) 
srvutil reconf all                       (root only) 
srvutil reconf service...                (root only) 
srvutil status                           (all users)
start -f

Starts service though required services might not yet run.

start -r

Starts service and all other required services.

stop -f

Stops service though depending services might still run.

stop -r

Stops service and all other depending services.

Note:

The srvutil stop command can additionally be used with the [-g] option, which stops the service in a specified time period (in minutes), optionally with a shutdown message [-m]. Both options only have effect on “afpsrv” and “pcshare” services, other services such as “lpd” or “heladmsrv” will ignore them and stop immediately.

Example:
# cd /usr/local/helios 
# bin/srvutil stop -f pcshare -g 1 -m "PCShare stopped."

This command stops the PCShare service (“pcshare”) after a grace time of one minute and with the message “PCShare stopped”, though “opisrv”, which depends on “pcshare”, is still running.

reconf [all]

Causes a master process to reread its configuration file or preferences.

status

Shows the status of all installed (HELIOS) services.

14.2 Integrating additional services

The HELIOS Service Controller can also be used to start and stop additional server processes.

If you want to integrate additional services into the HELIOS software, which are administered by the HELIOS Service Controller, you need to specify the service on the server via the ExecPath and DependsOn preference keys:

Example:
prefvalue -k "Services/myservice/ExecPath" -t str "sbin/myservice"
prefvalue -k "Services/myservice/DependsOn" -t strlist "afpsrv"

The above example defines a service executable “sbin/myservice” that must be started after “afpsrv”.

The new service is started with the next “start-helios” command.

The preferences for the HELIOS Service Controller are listed in 19.5 “Service Controller preference keys”.


HELIOS Website © 2020 HELIOS Software GmbH  
HELIOS Manuals May 27, 2021