startd(1M)startd(1M)NAMEstartd - startd daemon in foreground with timeout
SYNOPSIS
/usr/etc/startd [ -t timeout ] command [arg]...
DESCRIPTIONstartd is used in the system initialisation scripts to start system
daemons which need to start in the foreground but which must not be
allowed to block the execution of the initialisation scripts. Daemons
suitable for use with startd are those which background themselves but
only after performing some initialisation work on which other programs
depend, for example rpcbind(1m).
startd runs the given command with the given arguments in the foreground
and waits until the command finishes or backgrounds itself. However, if
the command does not finish within a fixed time, startd will background
the command and exit immediately. The length of the timeout defaults to
3 seconds and is configurable with the -t option, which takes a value in
seconds.
Error messages are written to the system log with a log facility of
daemon.
EXIT STATUSstartd returns an exit code of 0 if the command backgrounded itself or
exited successfully, 1 if an error occurred, 2 if the timeout expired,
and values greater than 2 if the command exited with a non-zero exit
code.
SEE ALSOsyslogd(1M).
Page 1