Annotation of src/etc/rc.conf, Revision 1.191
1.1 deraadt 1: #!/bin/sh -
2: #
1.191 ! tedu 3: # $OpenBSD: rc.conf,v 1.190 2014/06/09 18:31:58 jasper Exp $
1.172 deraadt 4:
5: # DO NOT EDIT THIS FILE!!
6: #
7: # This file defines the default service selection as shipped in a
8: # release. Upgrades of your system will modify this file.
9: #
10: # To select the service options you desire, please override these
11: # options in the file /etc/rc.conf.local
12: #
13: # DO NOT EDIT THIS FILE!!
1.1 deraadt 14:
15: # set these to "NO" to turn them off. otherwise, they're used as flags
1.136 michele 16: ldpd_flags=NO # for normal use: ""
1.118 norby 17: ripd_flags=NO # for normal use: ""
1.39 deraadt 18: mrouted_flags=NO # for normal use: "", if activated
1.35 niklas 19: # be sure to enable multicast_router below.
1.114 norby 20: dvmrpd_flags=NO # for normal use: ""
1.105 henning 21: ospfd_flags=NO # for normal use: ""
1.125 norby 22: ospf6d_flags=NO # for normal use: ""
1.95 henning 23: bgpd_flags=NO # for normal use: ""
1.39 deraadt 24: rarpd_flags=NO # for normal use: "-a"
25: bootparamd_flags=NO # for normal use: ""
26: rbootd_flags=NO # for normal use: ""
1.57 deraadt 27: sshd_flags="" # for normal use: ""
1.39 deraadt 28: named_flags=NO # for normal use: ""
1.184 ajacouto 29: nsd_flags=NO # for normal use: "-c /var/nsd/etc/nsd.conf"
1.187 sthen 30: unbound_flags=NO # for normal use: "-c /var/unbound/etc/unbound.conf"
1.130 mbalmer 31: ldattach_flags=NO # for normal use: "[options] linedisc cua-device"
1.102 henning 32: ntpd_flags=NO # for normal use: ""
1.39 deraadt 33: isakmpd_flags=NO # for normal use: ""
1.137 reyk 34: iked_flags=NO # for normal use: ""
1.116 mcbride 35: sasyncd_flags=NO # for normal use: ""
1.39 deraadt 36: mopd_flags=NO # for normal use: "-a"
37: apmd_flags=NO # for normal use: ""
1.99 henning 38: dhcpd_flags=NO # for normal use: ""
1.115 norby 39: dhcrelay_flags=NO # for normal use: "-i interface [server]"
1.42 itojun 40: rtadvd_flags=NO # for normal use: list of interfaces
41: # be sure to set net.inet6.ip6.forwarding=1
42: route6d_flags=NO # for normal use: ""
43: # be sure to set net.inet6.ip6.forwarding=1
44: rtsold_flags=NO # for normal use: interface
45: # be sure to set net.inet6.ip6.forwarding=0
46: # be sure to set net.inet6.ip6.accept_rtadv=1
1.160 fgsch 47: # be sure to set net.inet6.icmp6.rediraccept=1
1.62 fgsch 48: lpd_flags=NO # for normal use: "" (or "-l" for debugging)
1.91 henning 49: sensorsd_flags=NO # for normal use: ""
1.97 grange 50: hotplugd_flags=NO # for normal use: ""
1.107 henning 51: watchdogd_flags=NO # for normal use: ""
1.109 camield 52: ftpproxy_flags=NO # for normal use: ""
1.111 reyk 53: hostapd_flags=NO # for normal use: ""
1.117 mpf 54: ifstated_flags=NO # for normal use: ""
1.127 deraadt 55: relayd_flags=NO # for normal use: ""
1.128 reyk 56: snmpd_flags=NO # for normal use: ""
1.185 tedu 57: smtpd_flags="" # for normal use: ""
1.164 ratchov 58: sndiod_flags="" # for normal use: ""
1.138 martinh 59: ldapd_flags=NO # for normal use: ""
1.171 yasuoka 60: npppd_flags=NO # for normal use: ""
1.177 deraadt 61: inetd_flags=NO # for normal use: ""
1.143 robert 62: portmap_flags=NO # for normal use: ""
1.162 ajacouto 63: # Note: inetd(8) rpc services need portmap too
1.182 ajacouto 64: amd_flags=NO # for normal use: "" and see amd_master below
1.166 dlg 65: tftpd_flags=NO # for normal use: "[chroot dir]"
1.168 dlg 66: tftpproxy_flags=NO # for normal use: ""
1.173 kettenis 67: ldomd_flags=NO # for normal use: ""
1.182 ajacouto 68: identd_flags=NO # for normal use: "-e"
1.190 jasper 69: cron_flags="" # for normal use: ""
1.170 ajacouto 70:
71: # use -u to disable chroot, see nginx(8)
72: nginx_flags=NO # for normal use: ""
1.179 naddy 73: slowcgi_flags=NO # for normal use: ""
1.69 millert 74:
1.77 deraadt 75: # For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
1.185 tedu 76: sendmail_flags=NO
1.126 jmc 77: spamd_flags=NO # for normal use: "" and see spamd(8)
1.123 beck 78: spamd_black=NO # set to YES to run spamd without greylisting
1.104 henning 79: spamlogd_flags="" # use eg. "-i interface" and see spamlogd(8)
1.33 downsj 80:
81: # Set to NO if ftpd is running out of inetd
1.165 ajacouto 82: ftpd_flags=NO # for non-inetd use: ""
1.19 deraadt 83:
84: # On some architectures, you must also disable console getty in /etc/ttys
1.39 deraadt 85: xdm_flags=NO # for normal use: ""
1.52 aaron 86:
1.108 deraadt 87: # For enabling console mouse support (i386 alpha amd64)
1.60 aaron 88: wsmoused_flags=NO # for ps/2 or usb mice: "", serial: "-p /dev/cua00"
1.1 deraadt 89:
90: # set the following to "YES" to turn them on
1.133 henning 91: pf=YES # Packet filter / NAT
1.110 hshoexer 92: ipsec=NO # IPsec
1.56 krw 93: check_quotas=YES # NO may be desirable in some YP environments
1.121 ajacouto 94: accounting=NO # process accounting (using /var/account/acct)
1.63 hin 95:
1.35 niklas 96: # Multicast routing configuration
1.90 david 97: # Please look at netstart(8) for a detailed description if you change these
1.35 niklas 98: multicast_host=NO # Route all multicast packets to a single interface
99: multicast_router=NO # A multicast routing daemon will be run, e.g. mrouted
1.1 deraadt 100:
101: # miscellaneous other flags
1.72 tholo 102: savecore_flags= # "-z" to compress
1.163 ajacouto 103: ypbind_flags=NO # for normal use: ""
1.148 ajacouto 104: ypserv_flags=NO # add more flags, eg. -1 for YP v1, -d for DNS etc
1.155 deraadt 105: ypldap_flags=NO # for normal use: ""
1.92 deraadt 106: yppasswdd_flags=NO # "-d /etc/yp" if passwd files are in /etc/yp
1.149 ajacouto 107: nfsd_flags=NO # for normal use: "-tun 4" and see nfsd(8)
108: mountd_flags=NO # for normal use: ""
109: lockd_flags=NO # for normal use: ""
110: statd_flags=NO # for normal use: ""
1.1 deraadt 111: amd_master=/etc/amd/master # AMD 'master' map
1.139 jmc 112: syslogd_flags= # add more flags, e.g. "-u -a /chroot/dev/log"
1.65 kjell 113: pf_rules=/etc/pf.conf # Packet filter rules file
1.110 hshoexer 114: ipsec_rules=/etc/ipsec.conf # IPsec rules file
1.139 jmc 115: pflogd_flags= # add more flags, e.g. "-s 256"
1.87 pvalchev 116: shlib_dirs= # extra directories for ldconfig, separated
117: # by space
1.141 ajacouto 118:
1.144 ajacouto 119: # rc.d(8) packages scripts
1.141 ajacouto 120: # started in the specified order and stopped in reverse order
1.152 ajacouto 121: pkg_scripts=
1.45 deraadt 122:
1.188 ajacouto 123: unset mountd_flags nfsd_flags ypbind_flags
1.175 ajacouto 124:
1.174 ajacouto 125: [ -f /etc/rc.conf.local ] && . /etc/rc.conf.local
1.151 robert 126:
127: # special care needed for spamlogd to avoid starting it up and failing
128: # all the time
129: if [ X"${spamd_flags}" = X"NO" -o X"${spamd_black}" != X"NO" ]; then
130: spamlogd_flags=NO
1.154 robert 131: fi
132:
133: # special care needed for pflogd to avoid starting it up and failing
134: # if pf is not enabled
1.157 david 135: if [ X"${pf}" = X"NO" ]; then
1.154 robert 136: pflogd_flags=NO
1.151 robert 137: fi
1.175 ajacouto 138:
139: # backward compatibility
1.178 ajacouto 140: : ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)}
1.175 ajacouto 141: : ${nfsd_flags=$([ X"${nfs_server-NO}" = XYES ] && echo "-tun 4" || echo NO)}
142: : ${ypbind_flags=$([ X"`domainname`" != X"" -a -d /var/yp/binding ] || echo NO)}