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