rc.conf revision 1.170
1#!/bin/sh -
2#
3#	$OpenBSD: rc.conf,v 1.170 2012/08/26 19:25:19 ajacoutot 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: ""
58tftpd_flags=NO		# for normal use: "[chroot dir]"
59tftpproxy_flags=NO	# for normal use: ""
60
61# use -u to disable chroot, see httpd(8)
62httpd_flags=NO		# for normal use: "" (or "-DSSL" after reading ssl(8))
63
64# use -u to disable chroot, see nginx(8)
65nginx_flags=NO		# for normal use: ""
66
67# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
68sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
69spamd_flags=NO		# for normal use: "" and see spamd(8)
70spamd_black=NO		# set to YES to run spamd without greylisting
71spamlogd_flags=""	# use eg. "-i interface" and see spamlogd(8)
72
73# Set to NO if ftpd is running out of inetd
74ftpd_flags=NO		# for non-inetd use: ""
75
76# Set to NO if identd is running out of inetd
77identd_flags=NO		# for non-inetd use: "-elo"
78
79# Set to NO if popa3d is running out of inetd
80popa3d_flags=NO		# for non-inetd use: ""
81
82# On some architectures, you must also disable console getty in /etc/ttys
83xdm_flags=NO		# for normal use: ""
84
85# For enabling console mouse support (i386 alpha amd64)
86wsmoused_flags=NO	# for ps/2 or usb mice: "", serial: "-p /dev/cua00"
87
88# set the following to "YES" to turn them on
89pf=YES			# Packet filter / NAT
90ipsec=NO		# IPsec
91bt=NO			# Bluetooth
92check_quotas=YES	# NO may be desirable in some YP environments
93accounting=NO		# process accounting (using /var/account/acct)
94
95# Multicast routing configuration
96# Please look at netstart(8) for a detailed description if you change these
97multicast_host=NO	# Route all multicast packets to a single interface
98multicast_router=NO	# A multicast routing daemon will be run, e.g. mrouted
99
100# miscellaneous other flags
101savecore_flags=			# "-z" to compress
102ypbind_flags=NO			# for normal use: ""
103ypserv_flags=NO			# add more flags, eg. -1 for YP v1, -d for DNS etc
104ypldap_flags=NO			# for normal use: ""
105yppasswdd_flags=NO		# "-d /etc/yp" if passwd files are in /etc/yp
106nfsd_flags=NO			# for normal use: "-tun 4" and see nfsd(8)
107mountd_flags=NO			# for normal use: ""
108lockd_flags=NO			# for normal use: ""
109statd_flags=NO			# for normal use: ""
110amd_master=/etc/amd/master	# AMD 'master' map
111syslogd_flags=			# add more flags, e.g. "-u -a /chroot/dev/log"
112pf_rules=/etc/pf.conf		# Packet filter rules file
113ipsec_rules=/etc/ipsec.conf	# IPsec rules file
114bt_rules=/etc/bt.conf		# Bluetooth rules file
115pflogd_flags=			# add more flags, e.g. "-s 256"
116shlib_dirs=			# extra directories for ldconfig, separated
117				# by space
118
119# rc.d(8) packages scripts
120# started in the specified order and stopped in reverse order
121pkg_scripts=
122
123local_rcconf="/etc/rc.conf.local"
124
125unset inetd_flags rwhod_flags portmap_flags kdc_flags kadmind_flags
126unset kpasswdd_flags nfsd_flags mountd_flags lockd_flags
127unset statd_flags amd_flags ypbind_flags sndiod_flags
128
129[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line
130
131# special care needed for spamlogd to avoid starting it up and failing
132# all the time
133if [  X"${spamd_flags}" = X"NO" -o X"${spamd_black}" != X"NO" ]; then
134	spamlogd_flags=NO
135fi
136
137# special care needed for pflogd to avoid starting it up and failing
138# if pf is not enabled
139if [ X"${pf}" = X"NO" ]; then
140	pflogd_flags=NO
141fi
142
143# backward compatibility
144: ${inetd_flags=$([ X"${inetd-YES}" = XYES ] || echo NO)}
145: ${rwhod_flags=$([ X"${rwhod-NO}" = XYES ] || echo NO)}
146: ${portmap_flags=$([ X"${portmap-NO}" = XYES ] || echo NO)}
147: ${kdc_flags=$([ X"${krb5_master_kdc-NO}" = XYES -o X"${krb5_slave_kdc-NO}" = XYES ] || echo NO)}
148: ${kadmind_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
149: ${kpasswdd_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
150: ${nfsd_flags=$([ X"${nfs_server-NO}" = XYES ] && echo "-tun 4" || echo NO)}
151: ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)}
152: ${lockd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
153: ${statd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
154: ${amd_flags=$([ X"${amd-NO}" = XYES ] || echo NO)}
155: ${ypbind_flags=$([ X"`domainname`" != X"" -a -d /var/yp/binding ] || echo NO)}
156: ${sndiod_flags=${aucat_flags-}}
157