rc.conf revision 1.173
1#!/bin/sh -
2#
3#	$OpenBSD: rc.conf,v 1.173 2012/11/04 21:47:22 kettenis Exp $
4
5# DO NOT EDIT THIS FILE!!
6#
7# This file defines the default service selection as shipped in a
8# release.  Upgrades of your system will modify this file.
9#
10# To select the service options you desire, please override these
11# options in the file /etc/rc.conf.local
12#
13# DO NOT EDIT THIS FILE!!
14
15# set these to "NO" to turn them off.  otherwise, they're used as flags
16ldpd_flags=NO		# for normal use: ""
17ripd_flags=NO		# for normal use: ""
18mrouted_flags=NO	# for normal use: "", if activated
19			# be sure to enable multicast_router below.
20dvmrpd_flags=NO		# for normal use: ""
21ospfd_flags=NO		# for normal use: ""
22ospf6d_flags=NO		# for normal use: ""
23bgpd_flags=NO		# for normal use: ""
24rarpd_flags=NO		# for normal use: "-a"
25bootparamd_flags=NO	# for normal use: ""
26rbootd_flags=NO		# for normal use: ""
27sshd_flags=""		# for normal use: ""
28named_flags=NO		# for normal use: ""
29nsd_flags=NO		# for normal use: ""
30ldattach_flags=NO	# for normal use: "[options] linedisc cua-device"
31ntpd_flags=NO		# for normal use: ""
32isakmpd_flags=NO	# for normal use: ""
33iked_flags=NO		# for normal use: ""
34sasyncd_flags=NO	# for normal use: ""
35mopd_flags=NO		# for normal use: "-a"
36apmd_flags=NO		# for normal use: ""
37dhcpd_flags=NO		# for normal use: ""
38dhcrelay_flags=NO	# for normal use: "-i interface [server]"
39rtadvd_flags=NO		# for normal use: list of interfaces
40			# be sure to set net.inet6.ip6.forwarding=1
41route6d_flags=NO	# for normal use: ""
42			# be sure to set net.inet6.ip6.forwarding=1
43rtsold_flags=NO		# for normal use: interface
44			# be sure to set net.inet6.ip6.forwarding=0
45			# be sure to set net.inet6.ip6.accept_rtadv=1
46			# be sure to set net.inet6.icmp6.rediraccept=1
47lpd_flags=NO		# for normal use: "" (or "-l" for debugging)
48sensorsd_flags=NO	# for normal use: ""
49hotplugd_flags=NO	# for normal use: ""
50watchdogd_flags=NO	# for normal use: ""
51ftpproxy_flags=NO	# for normal use: ""
52hostapd_flags=NO	# for normal use: ""
53ifstated_flags=NO	# for normal use: ""
54relayd_flags=NO		# for normal use: ""
55snmpd_flags=NO		# for normal use: ""
56smtpd_flags=NO		# for normal use: ""
57sndiod_flags=""		# for normal use: ""
58ldapd_flags=NO		# for normal use: ""
59npppd_flags=NO		# for normal use: ""
60inetd_flags=""		# for normal use: ""
61rwhod_flags=NO		# for normal use: ""
62portmap_flags=NO	# for normal use: ""
63			# Note: inetd(8) rpc services need portmap too
64kdc_flags=NO		# for normal use: "" see 'info heimdal' for help
65kadmind_flags=NO	# for normal use: ""
66kpasswdd_flags=NO	# for normal use: ""
67btd_flags=NO		# for normal use: ""
68amd_flags=NO		# for normal use: ""
69tftpd_flags=NO		# for normal use: "[chroot dir]"
70tftpproxy_flags=NO	# for normal use: ""
71ldomd_flags=NO		# for normal use: ""
72
73# use -u to disable chroot, see httpd(8)
74httpd_flags=NO		# for normal use: "" (or "-DSSL" after reading ssl(8))
75
76# use -u to disable chroot, see nginx(8)
77nginx_flags=NO		# for normal use: ""
78
79# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
80sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
81spamd_flags=NO		# for normal use: "" and see spamd(8)
82spamd_black=NO		# set to YES to run spamd without greylisting
83spamlogd_flags=""	# use eg. "-i interface" and see spamlogd(8)
84
85# Set to NO if ftpd is running out of inetd
86ftpd_flags=NO		# for non-inetd use: ""
87
88# Set to NO if identd is running out of inetd
89identd_flags=NO		# for non-inetd use: "-elo"
90
91# Set to NO if popa3d is running out of inetd
92popa3d_flags=NO		# for non-inetd use: ""
93
94# On some architectures, you must also disable console getty in /etc/ttys
95xdm_flags=NO		# for normal use: ""
96
97# For enabling console mouse support (i386 alpha amd64)
98wsmoused_flags=NO	# for ps/2 or usb mice: "", serial: "-p /dev/cua00"
99
100# set the following to "YES" to turn them on
101pf=YES			# Packet filter / NAT
102ipsec=NO		# IPsec
103bt=NO			# Bluetooth
104check_quotas=YES	# NO may be desirable in some YP environments
105accounting=NO		# process accounting (using /var/account/acct)
106
107# Multicast routing configuration
108# Please look at netstart(8) for a detailed description if you change these
109multicast_host=NO	# Route all multicast packets to a single interface
110multicast_router=NO	# A multicast routing daemon will be run, e.g. mrouted
111
112# miscellaneous other flags
113savecore_flags=			# "-z" to compress
114ypbind_flags=NO			# for normal use: ""
115ypserv_flags=NO			# add more flags, eg. -1 for YP v1, -d for DNS etc
116ypldap_flags=NO			# for normal use: ""
117yppasswdd_flags=NO		# "-d /etc/yp" if passwd files are in /etc/yp
118nfsd_flags=NO			# for normal use: "-tun 4" and see nfsd(8)
119mountd_flags=NO			# for normal use: ""
120lockd_flags=NO			# for normal use: ""
121statd_flags=NO			# for normal use: ""
122amd_master=/etc/amd/master	# AMD 'master' map
123syslogd_flags=			# add more flags, e.g. "-u -a /chroot/dev/log"
124pf_rules=/etc/pf.conf		# Packet filter rules file
125ipsec_rules=/etc/ipsec.conf	# IPsec rules file
126bt_rules=/etc/bt.conf		# Bluetooth rules file
127pflogd_flags=			# add more flags, e.g. "-s 256"
128shlib_dirs=			# extra directories for ldconfig, separated
129				# by space
130
131# rc.d(8) packages scripts
132# started in the specified order and stopped in reverse order
133pkg_scripts=
134
135local_rcconf="/etc/rc.conf.local"
136
137unset inetd_flags rwhod_flags portmap_flags kdc_flags kadmind_flags
138unset kpasswdd_flags nfsd_flags mountd_flags lockd_flags
139unset statd_flags amd_flags ypbind_flags sndiod_flags
140
141[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line
142
143# special care needed for spamlogd to avoid starting it up and failing
144# all the time
145if [  X"${spamd_flags}" = X"NO" -o X"${spamd_black}" != X"NO" ]; then
146	spamlogd_flags=NO
147fi
148
149# special care needed for pflogd to avoid starting it up and failing
150# if pf is not enabled
151if [ X"${pf}" = X"NO" ]; then
152	pflogd_flags=NO
153fi
154
155# backward compatibility
156: ${inetd_flags=$([ X"${inetd-YES}" = XYES ] || echo NO)}
157: ${rwhod_flags=$([ X"${rwhod-NO}" = XYES ] || echo NO)}
158: ${portmap_flags=$([ X"${portmap-NO}" = XYES ] || echo NO)}
159: ${kdc_flags=$([ X"${krb5_master_kdc-NO}" = XYES -o X"${krb5_slave_kdc-NO}" = XYES ] || echo NO)}
160: ${kadmind_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
161: ${kpasswdd_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
162: ${nfsd_flags=$([ X"${nfs_server-NO}" = XYES ] && echo "-tun 4" || echo NO)}
163: ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)}
164: ${lockd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
165: ${statd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
166: ${amd_flags=$([ X"${amd-NO}" = XYES ] || echo NO)}
167: ${ypbind_flags=$([ X"`domainname`" != X"" -a -d /var/yp/binding ] || echo NO)}
168: ${sndiod_flags=${aucat_flags-}}
169