History log of /openbsd-current/etc/rc.conf
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_7_2_BASE
# 1.227 26-Sep-2022 kn

Drop incomplete archs lists from wsmoused(8) comment

OK deraadt


# 1.226 28-Jun-2022 claudio

Hook up bgplgd. Uses _bgplgd user with id 71:71 add a rc.d script and
all the other rc plumbing.
OK deraadt@


Revision tags: OPENBSD_7_1_BASE
# 1.225 11-Nov-2021 claudio

switch(4) and switchd(8) are retiering. Unhook them from various
configuration files.
OK sthen@ kn@ patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.224 16-Jul-2021 florian

switch to dhcpleased/resolvd in base
OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.223 01-Mar-2021 deraadt

resolvd and dhcpleased should not be enabled yet


# 1.222 26-Feb-2021 kn

Ship resolvd service, enable it by default

Starting right after unwind.

OK deraadt


# 1.221 26-Feb-2021 florian

rc(8) bits for dhcpleased(8).
OK deraadt


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.220 24-Jan-2020 tedu

retire rebound etc bits to the attic


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.226 28-Jun-2022 claudio

Hook up bgplgd. Uses _bgplgd user with id 71:71 add a rc.d script and
all the other rc plumbing.
OK deraadt@


Revision tags: OPENBSD_7_1_BASE
# 1.225 11-Nov-2021 claudio

switch(4) and switchd(8) are retiering. Unhook them from various
configuration files.
OK sthen@ kn@ patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.224 16-Jul-2021 florian

switch to dhcpleased/resolvd in base
OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.223 01-Mar-2021 deraadt

resolvd and dhcpleased should not be enabled yet


# 1.222 26-Feb-2021 kn

Ship resolvd service, enable it by default

Starting right after unwind.

OK deraadt


# 1.221 26-Feb-2021 florian

rc(8) bits for dhcpleased(8).
OK deraadt


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.220 24-Jan-2020 tedu

retire rebound etc bits to the attic


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.225 11-Nov-2021 claudio

switch(4) and switchd(8) are retiering. Unhook them from various
configuration files.
OK sthen@ kn@ patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.224 16-Jul-2021 florian

switch to dhcpleased/resolvd in base
OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.223 01-Mar-2021 deraadt

resolvd and dhcpleased should not be enabled yet


# 1.222 26-Feb-2021 kn

Ship resolvd service, enable it by default

Starting right after unwind.

OK deraadt


# 1.221 26-Feb-2021 florian

rc(8) bits for dhcpleased(8).
OK deraadt


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.220 24-Jan-2020 tedu

retire rebound etc bits to the attic


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.224 16-Jul-2021 florian

switch to dhcpleased/resolvd in base
OK deraadt


Revision tags: OPENBSD_6_9_BASE
# 1.223 01-Mar-2021 deraadt

resolvd and dhcpleased should not be enabled yet


# 1.222 26-Feb-2021 kn

Ship resolvd service, enable it by default

Starting right after unwind.

OK deraadt


# 1.221 26-Feb-2021 florian

rc(8) bits for dhcpleased(8).
OK deraadt


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.220 24-Jan-2020 tedu

retire rebound etc bits to the attic


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.223 01-Mar-2021 deraadt

resolvd and dhcpleased should not be enabled yet


# 1.222 26-Feb-2021 kn

Ship resolvd service, enable it by default

Starting right after unwind.

OK deraadt


# 1.221 26-Feb-2021 florian

rc(8) bits for dhcpleased(8).
OK deraadt


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.220 24-Jan-2020 tedu

retire rebound etc bits to the attic


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.222 26-Feb-2021 kn

Ship resolvd service, enable it by default

Starting right after unwind.

OK deraadt


# 1.221 26-Feb-2021 florian

rc(8) bits for dhcpleased(8).
OK deraadt


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.220 24-Jan-2020 tedu

retire rebound etc bits to the attic


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.220 24-Jan-2020 tedu

retire rebound etc bits to the attic


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.219 26-Jan-2019 florian

rc(8) bits for unwind(8); OK deraadt


Revision tags: OPENBSD_6_4_BASE
# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.218 23-Jul-2018 florian

It's time to switch to rad(8); tested by many.
Remove rtadvd(8) from rc(8).
OK deraadt, phessler


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


# 1.217 12-Jul-2018 florian

rc(8) infrastructure for rad


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf


Revision tags: OPENBSD_6_2_BASE
# 1.216 30-May-2017 tb

Introduce a scary rc.conf(8) knob library_aslr=(YES|NO) to turn off the
reordering of libraries by rc(8). This way machines with very slow disk I/O
have a chance of booting within reasonable time now that libcrypto is also
randomized.

Discussed with various;
input & ok from deraadt ajacoutot


# 1.215 30-May-2017 florian

Enable slaacd(8) by default and disable router solicitation and
advertisement processing in the kernel.
Go for it!!! deraadt@
additional encouragement to push forward from at least mpi and henning
special thanks to naddy for being an early adopter and finding bugs.


# 1.214 29-May-2017 florian

rc.d(8) for slaacd
OK phessler, deraadt


Revision tags: OPENBSD_6_1_BASE
# 1.213 26-Feb-2017 matthieu

Switch to xenodm(1).

Do it now deraadt@


# 1.212 06-Oct-2016 reyk

Add switchd

OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.211 06-Dec-2015 rpe

Add missing rc bits for rebound.

rc-wise OK aja@ jasper@


# 1.210 06-Dec-2015 ajacoutot

multicast_router -> multicast


# 1.209 05-Dec-2015 mpi

It does not make sense to insert a specific route for 224/4 when the
default one is good enough.

So merge rc.conf(8)'s 'multicast_router' and 'multicast_host' into a
single 'multicast'. If set to YES the reject route for 224/4 is not
inserted by netstart(8).

Manual bits from jmc@

ok henning@, ajacoutot@


# 1.208 05-Dec-2015 jasper

add rcscript for vmd

ok mlarkin@
prompted by deraadt@


# 1.207 27-Nov-2015 deraadt

yppasswd went away


# 1.206 03-Oct-2015 renato

Enable eigrpd(8) and eigrpctl(8) in the builds

ok deraadt@


# 1.205 12-Sep-2015 sthen

Provide an ftpproxy6 rc script. ftp-proxy can only open one listening socket
at a time, so a second instance of the daemon is required.

OK mikeb stsp ajacoutot


Revision tags: OPENBSD_5_8_BASE
# 1.204 03-Aug-2015 yasuoka

Place etc/defaults/radiusd.conf and etc/rc.d/radiusd. Modify etc/rc
to hook the rc script and modify etc/rc.conf to make it disable by
default. Also add an entry for /etc/radiusd.conf to etc/changelist
and etc/mtree/special.

ok deraadt


# 1.203 18-May-2015 deraadt

enable ntpd by default at install time. We use pools and a reliable
constraint to keep them in check. in the worst case of being on a
dark net, nothing changes.

this is being enabled by default to allow gathering of more operational
information from users. and if the operational heuristics in ntpd can be
suitable refined, this may stay the default into the future. if not, ntpd
will become even more awesome along the way.

with reyk rpe


# 1.202 04-May-2015 schwarze

Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.


# 1.201 02-May-2015 ajacoutot

Drop pf_rules and ipsec_rules from rc.conf(5); it shouldn't have been made
tweakable: there's no real point and these files support the 'include' option so
one can always get its config from whatever path... especially useful when
testing a new ruleset.

man page inputs from schwarze@
ok halex@ schwarze@ rpe@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.200 03-Dec-2014 florian

Unhook rtsol(8) and rtsold(8) from the build.
OK deraadt@


# 1.199 15-Sep-2014 matthieu

Remove sendmail tentacles. ok krw@ ajacoutot@


# 1.198 27-Aug-2014 florian

Nuke net.inet6.icmp6.rediraccept and allow redirects on interfaces
with autoconf enabled.
If one is doing SLAAC one does already trust link local icmp6 so the
policy for icmp6 redirects should be the same.
pointed out by & OK bluhm@; OK henning@


# 1.197 26-Aug-2014 robert

usr.sbin


# 1.196 22-Aug-2014 deraadt

disable use of bind in base; in the base use nsd/unbound instead.
a proper & complete bind port will show up.
discussed with many for years


Revision tags: OPENBSD_5_6_BASE
# 1.195 22-Jul-2014 reyk

Enable httpd(8) in the builds to get more testing, feedback and
improvements. It is not "finished" but serves static files.

ok deraadt@


# 1.194 21-Jul-2014 naddy

net.inet6.ip6.accept_rtadv is gone


# 1.193 13-Jul-2014 claudio

Add iscsid_flags to rc.conf so we do not try to start iscsid all the time.
Noticed by naddy@


# 1.192 12-Jul-2014 robert

Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.

discussed with and help from deraadt@ and halex@


# 1.191 11-Jul-2014 tedu

remove bluetooth bits


# 1.190 09-Jun-2014 jasper

add cron_flags which seemed to have been forgotten here.

ok aja@ dcoppa@


# 1.189 24-Apr-2014 tedu

rm rwhod tentacles


# 1.188 23-Apr-2014 ajacoutot

Remove krb5 bits from rc(8).

ok reyk@


# 1.187 15-Mar-2014 sthen

Enable Unbound in base, ok deraadt@


# 1.186 13-Mar-2014 florian

Unhook httpd(8) from build; etc bits
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on
the road deraadt@


# 1.185 12-Mar-2014 tedu

switch over to smtpd by default.
ok deraadt gilles todd


Revision tags: OPENBSD_5_5_BASE
# 1.184 18-Dec-2013 ajacoutot

Adapt nsd(1) comment to match the default daemon_flags of the rc.d script.

ok sthen@


# 1.183 15-Dec-2013 tedu

remove popa3d etc tendrils


# 1.182 10-Aug-2013 ajacoutot

Mention amd_master with amd_flags.
Move identd_flags away from the inetd-capable daemons and fix usage.

ok deraadt@


# 1.181 09-Aug-2013 ajacoutot

Add rc.d(8) scripts for ipropd-master and ipropd-slave.

ok deraadt@


# 1.180 09-Aug-2013 ajacoutot

Remove all references to btd and the corresponding _btd user and group.

ok sthen@ deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.179 01-Jun-2013 naddy

hook up slowcgi to the tree, including /etc glue and a sample configuration
snippet; ok florian@


# 1.178 29-Apr-2013 ajacoutot

Remove most of pre-rc.d(8) backward compatibility.

ok krw@ sthen@ rpe@ halex@ dcoppa@


# 1.177 21-Apr-2013 deraadt

disable inetd by default; ok aja millert


# 1.176 24-Mar-2013 deraadt

document default operation of identd; mentioned by creamy@nocrater.com


Revision tags: OPENBSD_5_3_BASE
# 1.175 17-Nov-2012 ajacoutot

Revert previous; there are more things to consider.


# 1.174 17-Nov-2012 ajacoutot

Remove pre-rc.d(8) backward compatibility.
See faq/current.html for more information.

The local_rcconf variable is not used anywhere anymore so drop it.

suggested by deraadt@
ok sthen@


# 1.173 04-Nov-2012 kettenis

Start ldomd(8).


# 1.172 28-Oct-2012 deraadt

OK, enough is enough. So many people persist in the practice of editing
this file, even years after the rc.conf / rc.conf.local split happened.
One way to improve upon this is to put a big fat comment at the top of
the file. (Other ways to improve this is by renaming files, but that
will just create more confusion).
ok aja robert


# 1.171 20-Sep-2012 yasuoka

Enable npppd and npppctl in default build. Add npppd to rc and
install sample configs to /etc/.

ok claudio deraadt henning mcbride


# 1.170 26-Aug-2012 ajacoutot

Hook up nginx to rc(8).

ok deraadt@ robert@


# 1.169 23-Aug-2012 deraadt

no more afs activation goop


# 1.168 20-Aug-2012 dlg

wire up the bits for tftp-proxy, which is called tftpproxy from rc.d's
point of view.

mostly ok sthen@ ajacoutot@, who were discussing the feng shui of the
start_daemons chunk


Revision tags: OPENBSD_5_2_BASE
# 1.167 01-Apr-2012 deraadt

btd went away


# 1.166 05-Mar-2012 dlg

add rc.d bits for the new standalone tftpd daemon.

mostly from Kent R. Spillner
ok sthen@ robert@


Revision tags: OPENBSD_5_1_BASE
# 1.165 21-Dec-2011 ajacoutot

Adapt after recent rc scripts change.

with input from and ok sthen@


# 1.164 09-Dec-2011 ratchov

Handle aucat -> sndiod name change, and enable sndiod by default. Mostly
from ajacoutot@.

ok deraadt ajacoutot


# 1.163 07-Oct-2011 ajacoutot

Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind.

Make it possible to start ypbind the same way as the other daemons
(using ypbind_flags) while preserving the historical startup behavior.

tested by deraadt@


# 1.162 20-Sep-2011 ajacoutot

Remove the "portmap" variable, it's unused now (use portmap_flags).

ok deraadt@ robert@


# 1.161 16-Sep-2011 robert

Add a script for popa3d to support running it outside of inetd.


Revision tags: OPENBSD_5_0_BASE
# 1.160 24-Jul-2011 fgsch

use the right sysctl, doh!
pointed out by Moritz Grimm (mgrimm-at-mrsserver-dot-net)


# 1.159 23-Jul-2011 fgsch

mention net.inet6.ip6.rediraccept as well around rtsold_flags.
sthen@ ok.


# 1.158 18-Jul-2011 ajacoutot

Zap rdate_flags, it's not used anymore.

ok deraadt@


# 1.157 17-Jul-2011 david

fix ${pf} variable so that the special pflogd check works; ok deraadt@


# 1.156 11-Jul-2011 robert

unset amd_flags so that backward compat (amd=YES) works


# 1.155 11-Jul-2011 deraadt

we need ypldap_flags=NO by default


# 1.154 08-Jul-2011 robert

move the pflog0 setup to the pflogd script and only
do that if pf is actually enabled (rely on pfctl -si)

requested by deraadt@


# 1.153 08-Jul-2011 ajacoutot

Remove outdated comment.

ok robert@ deraadt@


# 1.152 08-Jul-2011 ajacoutot

Forgot to commit that part yesterday, spotted by sthen@


# 1.151 08-Jul-2011 robert

fix boot output and make sure spamlogd is only started when needed


# 1.150 08-Jul-2011 robert

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!


# 1.149 08-Jul-2011 ajacoutot

Add the nfs startup scripts.

ok robert@


# 1.148 07-Jul-2011 ajacoutot

Set ypserv_flags to NO by default.

ok robert@


# 1.147 07-Jul-2011 robert

add a script for btd and replace the rc parts


# 1.146 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


# 1.145 07-Jul-2011 ajacoutot

Add kerberos startup scripts with backward compatibility goo.

ok robert@ deraadt@


# 1.144 07-Jul-2011 ajacoutot

Sync comments with reality.


# 1.143 07-Jul-2011 robert

add compat for portmap


# 1.142 06-Jul-2011 robert

Add rc.d(8) script for the system daemons that are restartable.
From now on rc(8) is going to call these scripts to start them up on boot
in the same order than before.
In addition the inetd and rwhod variables in rc.conf are deprecated so that
inetd_flags and rwhod_flags should be used. The old flags are still going
to be used for some time to allow users to switch.
There are more rc modifications to come later so let's put this in so
we can base more work on this.
It is important to mention that you can still keep using rc.local just
like the way you did before, and we have no intention to remove that either.

I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working
on this with me.


Revision tags: OPENBSD_4_9_BASE
# 1.141 12-Feb-2011 ajacoutot

Add the rc_scripts variable for rc.d(8).

prodded by espie@
ok miod@


# 1.140 01-Oct-2010 jakob

start nsd(8); ok deraadt


Revision tags: OPENBSD_4_8_BASE
# 1.139 29-Jul-2010 jmc

replace two misleading ie. with e.g.; from Jan Stary


# 1.138 27-Jul-2010 martinh

Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.

ok deraadt@ gilles@


# 1.137 28-Jun-2010 reyk

Add iked to rc/rc.conf, you can enable it on boot with the iked_flags= var.
Also copy the generated RSA key for isakmpd into the iked directory; this
way we share the same RSA key by default.

ok deraadt@ jsg@


# 1.136 25-Apr-2010 michele

Add ldpd(8) to /etc/rc* files.
It needs to be started before the routing daemons.
In this way every new prefix learnt by them already has a label associated.

discussed with and ok'ed by claudio@


# 1.135 23-Apr-2010 ratchov

start ``aucat -l'' from /etc/rc, unless aucat_flags=NO, which is
the default setting in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_7_BASE
# 1.134 17-Oct-2009 nicm

amd_dir is no longer used by rc so no need for it in rc.conf.

ok deraadt


Revision tags: OPENBSD_4_6_BASE
# 1.133 31-May-2009 henning

enable pf by default.
turns bombs into flowers, water into beer and eradicts swine flu


# 1.132 16-Mar-2009 jacekm

support for smtpd(8); ok gilles@


Revision tags: OPENBSD_4_5_BASE
# 1.131 27-Nov-2008 uwe

Add bt=YES to /etc/rc.conf.local to start the daemon


Revision tags: OPENBSD_4_4_BASE
# 1.130 09-Jun-2008 mbalmer

Replace nmeattach (which will be removed) with ldattach.


# 1.129 07-May-2008 claudio

routed is no longer, use ripd instead.


Revision tags: OPENBSD_4_3_BASE
# 1.128 31-Jan-2008 reyk

enable snmpd in the build

approved by deraadt@, ok thib@


# 1.127 07-Dec-2007 deraadt

hoststated gets renamed to relayd. easier to type, and actually says
what the daemon does - it is a relayer that pays attention to the status
of pools of hosts; not a status checkers that happens to do some relaying


# 1.126 20-Nov-2007 jmc

comment for spamd_flags should refer to spamd(8);

pointed out by Daniel Wade and previously by Frank Bax;
this time ok beck


# 1.125 08-Oct-2007 norby

Add the user _ospf6d otherwise the newly imported ospf6d daemon will not
start.

ok dlg@


Revision tags: OPENBSD_4_2_BASE
# 1.124 14-Mar-2007 ckuethe

Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.

ok deraadt


Revision tags: OPENBSD_4_1_BASE
# 1.123 27-Feb-2007 beck

spamd_grey=YES should really be spamd_black=NO
as disscussed with jmc and millert.
ok millert@


# 1.122 24-Feb-2007 millert

Make greylisting the default when spamd is enabled. Uses the new -g flag
for spamd-setup. OK beck@


# 1.121 02-Feb-2007 ajacoutot

- add a new "accounting" variable (default to NO) to enable accouting
(if the file /var/account/acct does not exist it will be created)

ok mk@


# 1.120 31-Jan-2007 pyr

link hoststated to the builds.
ok miod@, henning@


# 1.119 06-Jan-2007 matthieu

remove acpid references. ok gwk@, steven@, grange@ and janus@.


# 1.118 29-Oct-2006 norby

Add the _ripd user and startup stuff.

ok claudio@


# 1.117 27-Sep-2006 mpf

Add ifstated(8) startup bits.
OK deraadt@, henning@, mcbride@


Revision tags: OPENBSD_4_0_BASE
# 1.116 02-Jun-2006 mcbride

Add sasyncd to rc / rc.conf.

ok deraadt@ cloder@


# 1.115 01-Jun-2006 norby

Hook dhcrelay(8) into the startup process.

ok henning@


# 1.114 01-Jun-2006 norby

add all the goo to hook dvmrp into the system

ok derradt@


# 1.113 29-May-2006 avsm

revert vfs.nfs.privport sysctl, broke a few architectures
requested by deraadt@


# 1.112 28-May-2006 avsm

Add support for NFS mounts to be from non-reserved ports:

- new sysctl vfs.nfs.privport to require NFS mount requests to be on
reserved ports when set to 1 (the default).
- mountd now automatically sets the sysctl depending on the -n flag.
- add mountd_flags to rc.conf to enable the -n flag at boot.
deraadt@ ok


# 1.111 27-Mar-2006 reyk

add hostapd to rc/rc.conf glue

suggested and ok by kettenis@


# 1.110 22-Mar-2006 hshoexer

As the isakmpd fifo race is fixed, hook ipsecctl to rc.

ok naddy@ todd@


Revision tags: OPENBSD_3_9_BASE
# 1.109 16-Nov-2005 camield

add new ftp-proxy startup bits

ok henning beck


# 1.108 01-Nov-2005 deraadt

wsmoused works on amd64 too; carvalholatas@gmail.com


# 1.107 31-Oct-2005 henning

add bits for watchdogd startup, PR4540 Michael Knudsen <e@molioner.dk>
but I put it at a different place, watchdogd is really not a network daemon


Revision tags: OPENBSD_3_8_BASE
# 1.106 02-Jun-2005 tholo

Start on a basic ACPI framework -- does not do much more than read out the
ACPI tables into kernel memory and attach ACPI and HPET timers currently.

In order to test this code, enabling the devices in GENERIC as well as
the ACPI_ENABLE option is needed. This code does not do any thermal
control yet, so this should be done with care depending on the platform.

In the tree so more people can contribute to making this more fully
featured.

Ok niklas@ grange@ tedu@


# 1.105 22-Mar-2005 henning

add ospfd, ok theo
From: Jason Crawford <jasonrcrawford@gmail.com>, whitespace fixes me


Revision tags: OPENBSD_3_7_BASE
# 1.104 03-Nov-2004 henning

introduce spamlogd_flags to make it easier to e. g. bind spamlogd
to an interface; no change in default config
from Toni Mueller <support@oeko.net>, ja ja ja ja bob


# 1.103 18-Sep-2004 jmc

back out my previous commit: beck@ says spamd-setup(8) is correct;


# 1.102 18-Sep-2004 henning

unconditionally add -s to ntpd_flags in rc and suggest "" for normal
use in the comment in rc.conf again, idea & ok theo


# 1.101 18-Sep-2004 henning

adjust comment for ntpd_flags, "-s" is the normal use in the rc scripts now


# 1.100 17-Sep-2004 jmc

correct comment: spamd flags in spamd(8), not spamd-setup(8);
from frank bax on misc@;

ok deraadt@


Revision tags: OPENBSD_3_6_BASE
# 1.99 15-Jul-2004 henning

new dhcpd doesn't have -q any more, adjust comment accordingly
From: keoki seu <keoki@camelot.physics.wm.edu>


# 1.98 06-Jul-2004 henning

remove startup code for that other ntpd from ports and use the one
in base instead. theo ok & rush to go for beer


# 1.97 04-Jun-2004 grange

hotplugd startup.

ok deraadt@


# 1.96 25-May-2004 jakob

SNTP is RFC2030


Revision tags: OPENBSD_3_5_BASE
# 1.95 05-Mar-2004 henning

add the goo for bgpd, theo ok


# 1.94 26-Feb-2004 beck

add support for spamd greylisting with spamd -g and spamlogd to rc/rc.conf


# 1.93 11-Feb-2004 beck

simplify afs startup so all you have to do is say "YES" to get basic
AFS functionality (enough to to pkg_add's)


# 1.92 23-Jan-2004 deraadt

permit rpc.yppasswdd run to be blocked, and block by default; ok henning tedu


# 1.91 18-Nov-2003 henning

sensorsd startup via rc/rc.conf
ok millert@


Revision tags: OPENBSD_3_4_BASE
# 1.90 01-Jul-2003 david

now that there is multicast routing documentation in netstart(8),
reference it rather than /etc/netstart
ok henning@ millert@


# 1.89 07-Jun-2003 henning

don't tell people to use -u for identd any more, runs as _identd by default
now


# 1.88 14-May-2003 ian

No more gated. ok krw@, deraadt@, commments from David Krause, jakob@.


# 1.87 08-May-2003 pvalchev

mention shlib_dirs entries are separated by space; ok many people


Revision tags: OPENBSD_3_3_BASE
# 1.86 10-Mar-2003 deraadt

commented hourly spamd-setup run


# 1.85 04-Mar-2003 jakob

remove support for named_chroot and named_user; always run named as user
named and chrooted to /var/named. ok deraadt@


# 1.84 27-Dec-2002 lebel

spewd-setup should read spamd-setup


# 1.83 27-Dec-2002 deraadt

spamd startup stuff


# 1.82 03-Dec-2002 miod

Compile wsmoused on alpha, as it can be used on vga displays.


# 1.81 23-Nov-2002 deraadt

no more altqd use


# 1.80 04-Oct-2002 deraadt

smtpd leaves the building


Revision tags: OPENBSD_3_2_BASE
# 1.79 06-Sep-2002 deraadt

more photuris bits by bye bye


# 1.78 02-Aug-2002 deraadt

no rpc by default


# 1.77 11-Jul-2002 deraadt

note about the cron job; requested by fred@francis.unitra.sk


# 1.76 11-Jul-2002 deraadt

doc that rdate can do SNTP as well


# 1.75 09-Jul-2002 deraadt

ready ourself for the chroot httpd parts


# 1.74 11-Jun-2002 dhartmei

pfctl -f instead of -N/-R, ok deraadt@


# 1.73 09-Jun-2002 hin

Remove startup stuff for Kerberos 4 servers.

ok deraadt@


Revision tags: OPENBSD_3_1_BASE
# 1.72 08-Jan-2002 tholo

Permit flags to be set for savecore, e.g. to compress core dumps
ok millert@ fgsch@


# 1.71 19-Nov-2001 deraadt

zap trailing spaces and tabs


Revision tags: OPENBSD_3_0_BASE
# 1.70 12-Oct-2001 jakob

clarify smtpfwdd_flags; from dfa@solo.ee. ok deraadt


# 1.69 11-Sep-2001 millert

Scaffolding to support sendmail 8.12. Note that the new smmsp user/group
are *required*.


# 1.68 22-Aug-2001 deraadt

pflogd_flags; mbing@nfr.net


# 1.67 17-Aug-2001 deraadt

altqd startup stuff


# 1.66 05-Jul-2001 deraadt

pf off by default; how did this happening, as is noone testing????


# 1.65 01-Jul-2001 kjell

Initialization infrastruture for pf. Based on initial patches
by ian@, and much input and mangling from theo.


# 1.64 27-Jun-2001 hin

I suck


# 1.63 27-Jun-2001 hin

KerberosV support.

Kerberos related cleanup.


# 1.62 12-Jun-2001 fgsch

Use lpd_flags instead of lpd, thus allowing to pass parameters to lpd;
patch from Yozo TODA <yozo@imit.chiba-u.ac.jp>, deraadt@ ok.


# 1.61 30-May-2001 deraadt

Remove ipf. Darren Reed has interpreted his (old, new, whichever)
licence in a way that makes ipf not free according to the rules we
established over 5 years ago, at www.openbsd.org/goals.html (and those
same basic rules govern the other *BSD projects too). Specifically,
Darren says that modified versions are not permitted. But software
which OpenBSD uses and redistributes must be free to all (be they
people or companies), for any purpose they wish to use it, including
modification, use, peeing on, or even integration into baby mulching
machines or atomic bombs to be dropped on Australia. Furthermore, we
know of a number of companies using ipf with modification like us, who
are now in the same situation, and we hope that some of them will work
with us to fill this gap that now exists in OpenBSD (temporarily, we
hope).


# 1.60 23-May-2001 aaron

USB mice apply here, too.


# 1.59 23-May-2001 marc

fix wsmoused comment


# 1.58 02-May-2001 deraadt

wsmoused support; missed 2.9 -- bad aaron; heko@saitti.net


Revision tags: OPENBSD_2_9_BASE
# 1.57 19-Apr-2001 deraadt

permit passing sshd flags; djm


# 1.56 25-Mar-2001 krw

Typos: neccesary -> necessary, desireable -> desirable


# 1.55 30-Dec-2000 angelos

Back-out use of apachectl to start httpd:
1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started

Thanks to fgs@ for yelling about this :-)


# 1.54 30-Dec-2000 angelos

Use apachectl to start httpd, rather than directly call httpd in
/etc/rc (PR 1476)


Revision tags: OPENBSD_2_8_BASE
# 1.53 16-Oct-2000 aaron

Give examples of moused_flags usage for ps/2 and serial mice.


# 1.52 01-Sep-2000 aaron

Initialization script stuff for moused.


# 1.51 11-Jul-2000 matt

- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs

Approved-And-Assisted-By: millert


# 1.50 06-Jul-2000 itojun

remove ip6defaultif, this is just for IPv6 specification pedants


# 1.49 18-Jun-2000 todd

rc.conf now parses ${local_rcconf} internally; closes pr 1259


# 1.48 30-May-2000 mickey

add a note where to go to for nfs client configuration; after popular demand


# 1.47 19-May-2000 mickey

nfsiod/nfs_client, bye bye
add commented out entry into sysctl.conf for vfs.nfs.iothreads


Revision tags: OPENBSD_2_7_BASE
# 1.46 30-Apr-2000 ericj

fix PR #1169; itojun@ OK


# 1.45 21-Apr-2000 deraadt

rc.conf.local support, inspired by chuck yerkes


# 1.44 28-Feb-2000 itojun

add ip6defaultif, which configures default outgoing interface
when no neighboring router is found (rare case). this is to conform
strictly to the ND spec. it is safe to leave it empty.


# 1.43 19-Feb-2000 deraadt

description error; discovered in a bar in sweden..


# 1.42 02-Jan-2000 itojun

add following IPv6 configs: rtadvd_flags route6d_flags rtsold_flags


# 1.41 11-Nov-1999 fgsch

Allow identd to be used w/o inetd.


Revision tags: OPENBSD_2_6_BASE
# 1.40 17-Oct-1999 millert

Fix misleading comment.


# 1.39 13-Sep-1999 deraadt

shorten lines


# 1.38 12-Sep-1999 jakob

Change defaults to start sendmail using '-q30m'. This will not make
sendmail listen to requests on port 25, just process the queue every
30 minutes to take care of any unsent mail. OK millert@.


# 1.37 08-Jul-1999 deraadt

clean


# 1.36 24-May-1999 millert

Add shlib_dirs variable so users can add to the directories cached
in /var/run/ld.so.hints


Revision tags: OPENBSD_2_5_BASE
# 1.35 29-Mar-1999 niklas

New multicast route setup style


# 1.34 21-Dec-1998 deraadt

isakmpd startup stuff


# 1.33 11-Nov-1998 downsj

Add option for running ftpd out of rc.


Revision tags: OPENBSD_2_4_BASE
# 1.32 12-Oct-1998 art

startup code for AFS


# 1.31 18-Sep-1998 deraadt

add toggle for ntpd


# 1.30 17-Sep-1998 pattonme

Added daemon mode flags "-D" to default configuration. This new version doesn't
automatically release the terminal.


# 1.29 10-Sep-1998 marc

better way of handling dhcp client; Jason Ish <jbi130@mail.usask.ca>


# 1.28 08-Sep-1998 marc

dhcp client stuff. "Angelos D. Keromytis" <angelos@dsl.cis.upenn.edu>


# 1.27 25-Aug-1998 marc

put back recent change (apmd flags) that was accidently removed


# 1.26 19-Aug-1998 form

dhcpd: start from rc, controlled by rc.conf; sample config files


# 1.25 18-Aug-1998 marc

allow flags to be passed to apmd at millert's request


# 1.24 18-Aug-1998 marc

start apmd in rc, controlled by rc.conf


# 1.23 15-Jun-1998 deraadt

rc.conf control sshd


# 1.22 03-Jun-1998 millert

to turn of named chroot set to be empty, not 'NO'


# 1.21 03-Jun-1998 millert

Add named_user and named_chroot variables to simplify chroot'd named
setup.


# 1.20 23-May-1998 millert

mention -u name -t /var/named


Revision tags: OPENBSD_2_3_BASE
# 1.19 07-Apr-1998 deraadt

add xdm control to /etc/rc.conf; X11 docs need updating


# 1.18 28-Mar-1998 deraadt

s/^nat/ipnat/


# 1.17 25-Mar-1998 deraadt

httpd is now in the tree, and an rc.conf flag turns it on


# 1.16 07-Mar-1998 deraadt

disable photuris by default; it is noisy and ipsec is not fully functional by default


# 1.15 18-Feb-1998 deraadt

move nat.rules to ipnat.rules


# 1.14 18-Feb-1998 art

add an option for kerberos slave servers.


# 1.13 11-Feb-1998 deraadt

syslogd gets a new -a argument: specify additional AF_UNIX log devices
syslogd should create & listen to. As in "syslogd -a /chroot/dev/log",
I'm sure you get the idea.


# 1.12 07-Feb-1998 beck

Flags and startup for smtpd/smtpfwdd - not enabled by default.


# 1.11 07-Feb-1998 deraadt

ipforward is in sysctl.conf now


# 1.10 05-Feb-1998 deraadt

introduce /etc/sysctl.conf containing sysctl variables to change at boot time


# 1.9 21-Jan-1998 downsj

Add ${nfsiod_flags}


# 1.8 11-Jan-1998 angelos

Consistency.


# 1.7 20-Dec-1997 deraadt

ipforwarding option in rc.conf


# 1.6 15-Dec-1997 deraadt

correct swedish grammar


# 1.5 01-Dec-1997 deraadt

rearrange rfc1323 thingy


# 1.4 29-Nov-1997 kstailey

NAT requires IPF


# 1.3 23-Nov-1997 maja

Add support for mopd. -moj


Revision tags: OPENBSD_2_2_BASE
# 1.2 23-Sep-1997 mickey

spaces->tabs


# 1.1 04-Sep-1997 deraadt

fork netstart; new child is rc.conf