RC.D(8) OpenBSD System Manager's Manual RC.D(8)NAMErc.d - daemon control scripts
SYNOPSIS
/etc/rc.d/daemond action
DESCRIPTION
The /etc/rc.d directory contains shell scripts to start, stop, and
reconfigure daemon programs (``services''). Currently, it is only used
for daemons installed from packages(7), and not for the OpenBSD base
system.
Those services may be started at boot time in the order specified by the
rc_scripts variable from rc.conf(8), the order will be reversed during
shutdown.
Each such script responds to the following actions:
start Start the service, if not already running.
stop Stop the service.
reload Tell the daemon to reload its configuration.
restart Perform a stop, then a start.
check Return 0 if the daemon is running or 1 if it is not.
Each script defines its own defaults, some of which can be overridden by
site-specific values provided in rc.conf.local(8) (variable names are
obtained by replacing daemon with the name of the actual script):
daemon_flags Arguments to call daemon with.
daemon_user User to run daemon as, using su(1).
For example, postgres is managed through /etc/rc.d/postgresql. To run
the daemon using a site-specific user account, define the following in
rc.conf.local(8):
postgresql_user=mypgsqluser
FILES
/etc/rc.d/
Directory containing daemon control scripts.
/etc/rc.d/rc.subr
Functions and variables used by rc.d scripts.
SEE ALSOrc(8), rc.conf(8), rc.subr(8)HISTORY
The /etc/rc.d directory first appeared in OpenBSD 4.9.
BUGS
Changing flag values will change the corresponding pattern used with
pkill(1), so that stop or reload may not work afterwards.
OpenBSD 4.9 February 24, 2011 OpenBSD 4.9