DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Network services

Sample configuration scripts

Per-system script

The _sysconfig file in the example sets the timezone variable, TZ.

   assign TZ=EST5EDT        # set TZ
   runwait echo SAC is starting > /dev/console

Per-port monitor script

In the hypothetical _config file in the figure, the command /usr/bin/daemon is assumed to start a daemon process that builds and holds together a STREAMS multiplexor. By installing this configuration script, the command can be executed just before starting the port monitor that requires it.

   # build a STREAMS multiplexor
   run /usr/bin/daemon
   runwait echo $PMTAG is starting > /dev/console

Per-service script

The following per-service configuration script does two things: it specifies the maximum file size for files created by a process by setting the process's ulimit to 4096. It also specifies the protection mask to be applied to files created by the process by setting umask to 077.

   runwait ulimit 4096
   runwait umask 077

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004