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