summaryrefslogtreecommitdiff
path: root/etc/rc.conf
blob: 881ff9e6fd2bdaabc81bc314968360cd8c027021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#!/bin/sh -
#
#	$OpenBSD: rc.conf,v 1.178 2013/04/29 14:11:32 ajacoutot Exp $

# DO NOT EDIT THIS FILE!!
#
# This file defines the default service selection as shipped in a
# release.  Upgrades of your system will modify this file.
#
# To select the service options you desire, please override these
# options in the file /etc/rc.conf.local
#
# DO NOT EDIT THIS FILE!!

# set these to "NO" to turn them off.  otherwise, they're used as flags
ldpd_flags=NO		# for normal use: ""
ripd_flags=NO		# for normal use: ""
mrouted_flags=NO	# for normal use: "", if activated
			# be sure to enable multicast_router below.
dvmrpd_flags=NO		# for normal use: ""
ospfd_flags=NO		# for normal use: ""
ospf6d_flags=NO		# for normal use: ""
bgpd_flags=NO		# for normal use: ""
rarpd_flags=NO		# for normal use: "-a"
bootparamd_flags=NO	# for normal use: ""
rbootd_flags=NO		# for normal use: ""
sshd_flags=""		# for normal use: ""
named_flags=NO		# for normal use: ""
nsd_flags=NO		# for normal use: ""
ldattach_flags=NO	# for normal use: "[options] linedisc cua-device"
ntpd_flags=NO		# for normal use: ""
isakmpd_flags=NO	# for normal use: ""
iked_flags=NO		# for normal use: ""
sasyncd_flags=NO	# for normal use: ""
mopd_flags=NO		# for normal use: "-a"
apmd_flags=NO		# for normal use: ""
dhcpd_flags=NO		# for normal use: ""
dhcrelay_flags=NO	# for normal use: "-i interface [server]"
rtadvd_flags=NO		# for normal use: list of interfaces
			# be sure to set net.inet6.ip6.forwarding=1
route6d_flags=NO	# for normal use: ""
			# be sure to set net.inet6.ip6.forwarding=1
rtsold_flags=NO		# for normal use: interface
			# be sure to set net.inet6.ip6.forwarding=0
			# be sure to set net.inet6.ip6.accept_rtadv=1
			# be sure to set net.inet6.icmp6.rediraccept=1
lpd_flags=NO		# for normal use: "" (or "-l" for debugging)
sensorsd_flags=NO	# for normal use: ""
hotplugd_flags=NO	# for normal use: ""
watchdogd_flags=NO	# for normal use: ""
ftpproxy_flags=NO	# for normal use: ""
hostapd_flags=NO	# for normal use: ""
ifstated_flags=NO	# for normal use: ""
relayd_flags=NO		# for normal use: ""
snmpd_flags=NO		# for normal use: ""
smtpd_flags=NO		# for normal use: ""
sndiod_flags=""		# for normal use: ""
ldapd_flags=NO		# for normal use: ""
npppd_flags=NO		# for normal use: ""
inetd_flags=NO		# for normal use: ""
rwhod_flags=NO		# for normal use: ""
portmap_flags=NO	# for normal use: ""
			# Note: inetd(8) rpc services need portmap too
kdc_flags=NO		# for normal use: "" see 'info heimdal' for help
kadmind_flags=NO	# for normal use: ""
kpasswdd_flags=NO	# for normal use: ""
btd_flags=NO		# for normal use: ""
amd_flags=NO		# for normal use: ""
tftpd_flags=NO		# for normal use: "[chroot dir]"
tftpproxy_flags=NO	# for normal use: ""
ldomd_flags=NO		# for normal use: ""

# use -u to disable chroot, see httpd(8)
httpd_flags=NO		# for normal use: "" (or "-DSSL" after reading ssl(8))

# use -u to disable chroot, see nginx(8)
nginx_flags=NO		# for normal use: ""

# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
spamd_flags=NO		# for normal use: "" and see spamd(8)
spamd_black=NO		# set to YES to run spamd without greylisting
spamlogd_flags=""	# use eg. "-i interface" and see spamlogd(8)

# Set to NO if ftpd is running out of inetd
ftpd_flags=NO		# for non-inetd use: ""

# Set to NO if identd is running out of inetd
identd_flags=NO		# for non-inetd use: "-el"

# Set to NO if popa3d is running out of inetd
popa3d_flags=NO		# for non-inetd use: ""

# On some architectures, you must also disable console getty in /etc/ttys
xdm_flags=NO		# for normal use: ""

# For enabling console mouse support (i386 alpha amd64)
wsmoused_flags=NO	# for ps/2 or usb mice: "", serial: "-p /dev/cua00"

# set the following to "YES" to turn them on
pf=YES			# Packet filter / NAT
ipsec=NO		# IPsec
bt=NO			# Bluetooth
check_quotas=YES	# NO may be desirable in some YP environments
accounting=NO		# process accounting (using /var/account/acct)

# Multicast routing configuration
# Please look at netstart(8) for a detailed description if you change these
multicast_host=NO	# Route all multicast packets to a single interface
multicast_router=NO	# A multicast routing daemon will be run, e.g. mrouted

# miscellaneous other flags
savecore_flags=			# "-z" to compress
ypbind_flags=NO			# for normal use: ""
ypserv_flags=NO			# add more flags, eg. -1 for YP v1, -d for DNS etc
ypldap_flags=NO			# for normal use: ""
yppasswdd_flags=NO		# "-d /etc/yp" if passwd files are in /etc/yp
nfsd_flags=NO			# for normal use: "-tun 4" and see nfsd(8)
mountd_flags=NO			# for normal use: ""
lockd_flags=NO			# for normal use: ""
statd_flags=NO			# for normal use: ""
amd_master=/etc/amd/master	# AMD 'master' map
syslogd_flags=			# add more flags, e.g. "-u -a /chroot/dev/log"
pf_rules=/etc/pf.conf		# Packet filter rules file
ipsec_rules=/etc/ipsec.conf	# IPsec rules file
bt_rules=/etc/bt.conf		# Bluetooth rules file
pflogd_flags=			# add more flags, e.g. "-s 256"
shlib_dirs=			# extra directories for ldconfig, separated
				# by space

# rc.d(8) packages scripts
# started in the specified order and stopped in reverse order
pkg_scripts=

unset kadmind_flags kdc_flags kpasswdd_flags mountd_flags nfsd_flags ypbind_flags

[ -f /etc/rc.conf.local ] && . /etc/rc.conf.local

# special care needed for spamlogd to avoid starting it up and failing
# all the time
if [  X"${spamd_flags}" = X"NO" -o X"${spamd_black}" != X"NO" ]; then
	spamlogd_flags=NO
fi

# special care needed for pflogd to avoid starting it up and failing
# if pf is not enabled
if [ X"${pf}" = X"NO" ]; then
	pflogd_flags=NO
fi

# backward compatibility
: ${kadmind_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
: ${kdc_flags=$([ X"${krb5_master_kdc-NO}" = XYES -o X"${krb5_slave_kdc-NO}" = XYES ] || echo NO)}
: ${kpasswdd_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
: ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)}
: ${nfsd_flags=$([ X"${nfs_server-NO}" = XYES ] && echo "-tun 4" || echo NO)}
: ${ypbind_flags=$([ X"`domainname`" != X"" -a -d /var/yp/binding ] || echo NO)}