|
|
As a port monitor under the SAF, ttymon can customize the environment of each service it starts. It does this by interpreting a per-service configuration script, if one exists, immediately before starting the service. Per-service configuration scripts are optional. Configuration scripts are installed using the pmadm command with -g and -z options. (See pmadm(1M).)
It is also possible to customize the environment of a ttymon port monitor. A per-port monitor configuration script is defined using the sacadm command with -g and -z options. (See sacadm(1M).) The environment modifications made by a port-monitor configuration script are inherited by the port monitor and all the services it invokes. The environment of any particular service can then be customized further by using a per-service configuration script.
The doconfig(3iac) manual page describes the language in which configuration scripts are written.
Configuration scripts are not normally needed for basic operations. You may use a configuration script if you want to customize your environment, debug a service, and so on.
For example, if your system has a ulimit of 1MB you cannot create files larger than 1MB. You may want to send a file larger than 1MB to the system via uuto, but uuto rejects the file. To solve the problem, you can define a configuration script (through the pmadm command) that specifies a larger ulimit for the uucp service.