rc.conf revision 1.150
1#!/bin/sh -
2#
3#	$OpenBSD: rc.conf,v 1.150 2011/07/08 02:15:34 robert 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: ""
20rdate_flags=NO		# for normal use: [RFC868-host] or [-n RFC2030-host]
21ldattach_flags=NO	# for normal use: "[options] linedisc cua-device"
22ntpd_flags=NO		# for normal use: ""
23isakmpd_flags=NO	# for normal use: ""
24iked_flags=NO		# for normal use: ""
25sasyncd_flags=NO	# for normal use: ""
26mopd_flags=NO		# for normal use: "-a"
27apmd_flags=NO		# for normal use: ""
28dhcpd_flags=NO		# for normal use: ""
29dhcrelay_flags=NO	# for normal use: "-i interface [server]"
30rtadvd_flags=NO		# for normal use: list of interfaces
31			# be sure to set net.inet6.ip6.forwarding=1
32route6d_flags=NO	# for normal use: ""
33			# be sure to set net.inet6.ip6.forwarding=1
34rtsold_flags=NO		# for normal use: interface
35			# be sure to set net.inet6.ip6.forwarding=0
36			# be sure to set net.inet6.ip6.accept_rtadv=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: ""
47aucat_flags=NO		# 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: ""
52kdc_flags=NO		# for normal use: "" see 'info heimdal' for help
53kadmind_flags=NO	# for normal use: ""
54kpasswdd_flags=NO	# for normal use: ""
55btd_flags=NO		# for normal use: ""
56amd_flags=NO
57
58# use -u to disable chroot, see httpd(8)
59httpd_flags=NO		# for normal use: "" (or "-DSSL" after reading ssl(8))
60
61# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
62sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
63spamd_flags=NO		# for normal use: "" and see spamd(8)
64spamd_black=NO		# set to YES to run spamd without greylisting
65spamlogd_flags=""	# use eg. "-i interface" and see spamlogd(8)
66
67# Set to NO if ftpd is running out of inetd
68ftpd_flags=NO		# for non-inetd use: "-D"
69
70# Set to NO if identd is running out of inetd
71identd_flags=NO		# for non-inetd use: "-b -elo"
72
73# On some architectures, you must also disable console getty in /etc/ttys
74xdm_flags=NO		# for normal use: ""
75
76# For enabling console mouse support (i386 alpha amd64)
77wsmoused_flags=NO	# for ps/2 or usb mice: "", serial: "-p /dev/cua00"
78
79# set the following to "YES" to turn them on
80pf=YES			# Packet filter / NAT
81ipsec=NO		# IPsec
82bt=NO			# Bluetooth
83portmap=NO		# Note: inetd(8) rpc services need portmap too
84check_quotas=YES	# NO may be desirable in some YP environments
85accounting=NO		# process accounting (using /var/account/acct)
86
87afs=NO			# mount and run afs
88
89# Multicast routing configuration
90# Please look at netstart(8) for a detailed description if you change these
91multicast_host=NO	# Route all multicast packets to a single interface
92multicast_router=NO	# A multicast routing daemon will be run, e.g. mrouted
93
94# miscellaneous other flags
95# only used if the appropriate server is marked YES above
96savecore_flags=			# "-z" to compress
97ypserv_flags=NO			# add more flags, eg. -1 for YP v1, -d for DNS etc
98yppasswdd_flags=NO		# "-d /etc/yp" if passwd files are in /etc/yp
99nfsd_flags=NO			# for normal use: "-tun 4" and see nfsd(8)
100mountd_flags=NO			# for normal use: ""
101lockd_flags=NO			# for normal use: ""
102statd_flags=NO			# for normal use: ""
103amd_master=/etc/amd/master	# AMD 'master' map
104syslogd_flags=			# add more flags, e.g. "-u -a /chroot/dev/log"
105pf_rules=/etc/pf.conf		# Packet filter rules file
106ipsec_rules=/etc/ipsec.conf	# IPsec rules file
107bt_rules=/etc/bt.conf		# Bluetooth rules file
108pflogd_flags=			# add more flags, e.g. "-s 256"
109afsd_flags=			# Flags passed to afsd
110shlib_dirs=			# extra directories for ldconfig, separated
111				# by space
112
113# rc.d(8) packages scripts
114# started in the specified order and stopped in reverse order
115rc_scripts=
116
117local_rcconf="/etc/rc.conf.local"
118
119unset inetd_flags rwhod_flags portmap_flags kdc_flags kadmind_flags
120unset kpasswdd_flags btd_flags nfsd_flags mountd_flags lockd_flags
121unset statd_flags
122
123[ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line
124
125# backward compatibility
126: ${inetd_flags=$([ X"${inetd-YES}" = XYES ] || echo NO)}
127: ${rwhod_flags=$([ X"${rwhod-NO}" = XYES ] || echo NO)}
128: ${portmap_flags=$([ X"${portmap-NO}" = XYES ] || echo NO)}
129: ${kdc_flags=$([ X"${krb5_master_kdc-NO}" = XYES -o X"${krb5_slave_kdc-NO}" = XYES ] || echo NO)}
130: ${kadmind_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
131: ${kpasswdd_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
132: ${btd_flags=$([ X"${bt-NO}" = XYES ] || echo NO)}
133: ${nfsd_flags=$([ X"${nfs_server-NO}" = XYES ] && echo "-tun 4" || echo NO)}
134: ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)}
135: ${lockd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
136: ${statd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
137: ${amd_flags=$([ X"${amd-NO}" = XYES ] || echo NO)}
138