Annotation of src/etc/rc.conf, Revision 1.181
1.1 deraadt 1: #!/bin/sh -
2: #
1.180 ajacouto 3: # $OpenBSD: rc.conf,v 1.179 2013/06/01 14:06:20 naddy 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.140 jakob 29: nsd_flags=NO # for normal use: ""
1.130 mbalmer 30: ldattach_flags=NO # for normal use: "[options] linedisc cua-device"
1.102 henning 31: ntpd_flags=NO # for normal use: ""
1.39 deraadt 32: isakmpd_flags=NO # for normal use: ""
1.137 reyk 33: iked_flags=NO # for normal use: ""
1.116 mcbride 34: sasyncd_flags=NO # for normal use: ""
1.39 deraadt 35: mopd_flags=NO # for normal use: "-a"
36: apmd_flags=NO # for normal use: ""
1.99 henning 37: dhcpd_flags=NO # for normal use: ""
1.115 norby 38: dhcrelay_flags=NO # for normal use: "-i interface [server]"
1.42 itojun 39: rtadvd_flags=NO # for normal use: list of interfaces
40: # be sure to set net.inet6.ip6.forwarding=1
41: route6d_flags=NO # for normal use: ""
42: # be sure to set net.inet6.ip6.forwarding=1
43: rtsold_flags=NO # for normal use: interface
44: # be sure to set net.inet6.ip6.forwarding=0
45: # be sure to set net.inet6.ip6.accept_rtadv=1
1.160 fgsch 46: # be sure to set net.inet6.icmp6.rediraccept=1
1.62 fgsch 47: lpd_flags=NO # for normal use: "" (or "-l" for debugging)
1.91 henning 48: sensorsd_flags=NO # for normal use: ""
1.97 grange 49: hotplugd_flags=NO # for normal use: ""
1.107 henning 50: watchdogd_flags=NO # for normal use: ""
1.109 camield 51: ftpproxy_flags=NO # for normal use: ""
1.111 reyk 52: hostapd_flags=NO # for normal use: ""
1.117 mpf 53: ifstated_flags=NO # for normal use: ""
1.127 deraadt 54: relayd_flags=NO # for normal use: ""
1.128 reyk 55: snmpd_flags=NO # for normal use: ""
1.132 jacekm 56: smtpd_flags=NO # for normal use: ""
1.164 ratchov 57: sndiod_flags="" # for normal use: ""
1.138 martinh 58: ldapd_flags=NO # for normal use: ""
1.171 yasuoka 59: npppd_flags=NO # for normal use: ""
1.177 deraadt 60: inetd_flags=NO # for normal use: ""
1.142 robert 61: rwhod_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.145 ajacouto 64: kdc_flags=NO # for normal use: "" see 'info heimdal' for help
65: kadmind_flags=NO # for normal use: ""
66: kpasswdd_flags=NO # for normal use: ""
1.181 ! ajacouto 67: ipropd_master_flags=NO # for normal use: ""
! 68: ipropd_slave_flags=NO # for normal use: "[master hostname]"
1.154 robert 69: amd_flags=NO # for normal use: ""
1.166 dlg 70: tftpd_flags=NO # for normal use: "[chroot dir]"
1.168 dlg 71: tftpproxy_flags=NO # for normal use: ""
1.173 kettenis 72: ldomd_flags=NO # for normal use: ""
1.75 deraadt 73:
74: # use -u to disable chroot, see httpd(8)
75: httpd_flags=NO # for normal use: "" (or "-DSSL" after reading ssl(8))
1.170 ajacouto 76:
77: # use -u to disable chroot, see nginx(8)
78: nginx_flags=NO # for normal use: ""
1.179 naddy 79: slowcgi_flags=NO # for normal use: ""
1.69 millert 80:
1.77 deraadt 81: # For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
1.69 millert 82: sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
1.126 jmc 83: spamd_flags=NO # for normal use: "" and see spamd(8)
1.123 beck 84: spamd_black=NO # set to YES to run spamd without greylisting
1.104 henning 85: spamlogd_flags="" # use eg. "-i interface" and see spamlogd(8)
1.33 downsj 86:
87: # Set to NO if ftpd is running out of inetd
1.165 ajacouto 88: ftpd_flags=NO # for non-inetd use: ""
1.41 fgsch 89:
90: # Set to NO if identd is running out of inetd
1.176 deraadt 91: identd_flags=NO # for non-inetd use: "-el"
1.161 robert 92:
93: # Set to NO if popa3d is running out of inetd
1.165 ajacouto 94: popa3d_flags=NO # for non-inetd use: ""
1.19 deraadt 95:
96: # On some architectures, you must also disable console getty in /etc/ttys
1.39 deraadt 97: xdm_flags=NO # for normal use: ""
1.52 aaron 98:
1.108 deraadt 99: # For enabling console mouse support (i386 alpha amd64)
1.60 aaron 100: wsmoused_flags=NO # for ps/2 or usb mice: "", serial: "-p /dev/cua00"
1.1 deraadt 101:
102: # set the following to "YES" to turn them on
1.133 henning 103: pf=YES # Packet filter / NAT
1.110 hshoexer 104: ipsec=NO # IPsec
1.131 uwe 105: bt=NO # Bluetooth
1.56 krw 106: check_quotas=YES # NO may be desirable in some YP environments
1.121 ajacouto 107: accounting=NO # process accounting (using /var/account/acct)
1.63 hin 108:
1.35 niklas 109: # Multicast routing configuration
1.90 david 110: # Please look at netstart(8) for a detailed description if you change these
1.35 niklas 111: multicast_host=NO # Route all multicast packets to a single interface
112: multicast_router=NO # A multicast routing daemon will be run, e.g. mrouted
1.1 deraadt 113:
114: # miscellaneous other flags
1.72 tholo 115: savecore_flags= # "-z" to compress
1.163 ajacouto 116: ypbind_flags=NO # for normal use: ""
1.148 ajacouto 117: ypserv_flags=NO # add more flags, eg. -1 for YP v1, -d for DNS etc
1.155 deraadt 118: ypldap_flags=NO # for normal use: ""
1.92 deraadt 119: yppasswdd_flags=NO # "-d /etc/yp" if passwd files are in /etc/yp
1.149 ajacouto 120: nfsd_flags=NO # for normal use: "-tun 4" and see nfsd(8)
121: mountd_flags=NO # for normal use: ""
122: lockd_flags=NO # for normal use: ""
123: statd_flags=NO # for normal use: ""
1.1 deraadt 124: amd_master=/etc/amd/master # AMD 'master' map
1.139 jmc 125: syslogd_flags= # add more flags, e.g. "-u -a /chroot/dev/log"
1.65 kjell 126: pf_rules=/etc/pf.conf # Packet filter rules file
1.110 hshoexer 127: ipsec_rules=/etc/ipsec.conf # IPsec rules file
1.131 uwe 128: bt_rules=/etc/bt.conf # Bluetooth rules file
1.139 jmc 129: pflogd_flags= # add more flags, e.g. "-s 256"
1.87 pvalchev 130: shlib_dirs= # extra directories for ldconfig, separated
131: # by space
1.141 ajacouto 132:
1.144 ajacouto 133: # rc.d(8) packages scripts
1.141 ajacouto 134: # started in the specified order and stopped in reverse order
1.152 ajacouto 135: pkg_scripts=
1.45 deraadt 136:
1.178 ajacouto 137: unset kadmind_flags kdc_flags kpasswdd_flags mountd_flags nfsd_flags ypbind_flags
1.175 ajacouto 138:
1.174 ajacouto 139: [ -f /etc/rc.conf.local ] && . /etc/rc.conf.local
1.151 robert 140:
141: # special care needed for spamlogd to avoid starting it up and failing
142: # all the time
143: if [ X"${spamd_flags}" = X"NO" -o X"${spamd_black}" != X"NO" ]; then
144: spamlogd_flags=NO
1.154 robert 145: fi
146:
147: # special care needed for pflogd to avoid starting it up and failing
148: # if pf is not enabled
1.157 david 149: if [ X"${pf}" = X"NO" ]; then
1.154 robert 150: pflogd_flags=NO
1.151 robert 151: fi
1.175 ajacouto 152:
153: # backward compatibility
1.178 ajacouto 154: : ${kadmind_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
1.175 ajacouto 155: : ${kdc_flags=$([ X"${krb5_master_kdc-NO}" = XYES -o X"${krb5_slave_kdc-NO}" = XYES ] || echo NO)}
156: : ${kpasswdd_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
1.178 ajacouto 157: : ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)}
1.175 ajacouto 158: : ${nfsd_flags=$([ X"${nfs_server-NO}" = XYES ] && echo "-tun 4" || echo NO)}
159: : ${ypbind_flags=$([ X"`domainname`" != X"" -a -d /var/yp/binding ] || echo NO)}