[BACK]Return to rc.conf CVS log [TXT][DIR] Up to [local] / src / etc

Annotation of src/etc/rc.conf, Revision 1.158

1.1       deraadt     1: #!/bin/sh -
                      2: #
1.158   ! ajacouto    3: #      $OpenBSD: rc.conf,v 1.157 2011/07/17 16:35:58 david Exp $
1.1       deraadt     4:
                      5: # set these to "NO" to turn them off.  otherwise, they're used as flags
1.136     michele     6: ldpd_flags=NO          # for normal use: ""
1.118     norby       7: ripd_flags=NO          # for normal use: ""
1.39      deraadt     8: mrouted_flags=NO       # for normal use: "", if activated
1.35      niklas      9:                        # be sure to enable multicast_router below.
1.114     norby      10: dvmrpd_flags=NO                # for normal use: ""
1.105     henning    11: ospfd_flags=NO         # for normal use: ""
1.125     norby      12: ospf6d_flags=NO                # for normal use: ""
1.95      henning    13: bgpd_flags=NO          # for normal use: ""
1.39      deraadt    14: rarpd_flags=NO         # for normal use: "-a"
                     15: bootparamd_flags=NO    # for normal use: ""
                     16: rbootd_flags=NO                # for normal use: ""
1.57      deraadt    17: sshd_flags=""          # for normal use: ""
1.39      deraadt    18: named_flags=NO         # for normal use: ""
1.140     jakob      19: nsd_flags=NO           # for normal use: ""
1.130     mbalmer    20: ldattach_flags=NO      # for normal use: "[options] linedisc cua-device"
1.102     henning    21: ntpd_flags=NO          # for normal use: ""
1.39      deraadt    22: isakmpd_flags=NO       # for normal use: ""
1.137     reyk       23: iked_flags=NO          # for normal use: ""
1.116     mcbride    24: sasyncd_flags=NO       # for normal use: ""
1.39      deraadt    25: mopd_flags=NO          # for normal use: "-a"
                     26: apmd_flags=NO          # for normal use: ""
1.99      henning    27: dhcpd_flags=NO         # for normal use: ""
1.115     norby      28: dhcrelay_flags=NO      # for normal use: "-i interface [server]"
1.42      itojun     29: rtadvd_flags=NO                # for normal use: list of interfaces
                     30:                        # be sure to set net.inet6.ip6.forwarding=1
                     31: route6d_flags=NO       # for normal use: ""
                     32:                        # be sure to set net.inet6.ip6.forwarding=1
                     33: rtsold_flags=NO                # for normal use: interface
                     34:                        # be sure to set net.inet6.ip6.forwarding=0
                     35:                        # be sure to set net.inet6.ip6.accept_rtadv=1
1.62      fgsch      36: lpd_flags=NO           # for normal use: "" (or "-l" for debugging)
1.91      henning    37: sensorsd_flags=NO      # for normal use: ""
1.97      grange     38: hotplugd_flags=NO      # for normal use: ""
1.107     henning    39: watchdogd_flags=NO     # for normal use: ""
1.109     camield    40: ftpproxy_flags=NO      # for normal use: ""
1.111     reyk       41: hostapd_flags=NO       # for normal use: ""
1.117     mpf        42: ifstated_flags=NO      # for normal use: ""
1.127     deraadt    43: relayd_flags=NO                # for normal use: ""
1.128     reyk       44: snmpd_flags=NO         # for normal use: ""
1.132     jacekm     45: smtpd_flags=NO         # for normal use: ""
1.135     ratchov    46: aucat_flags=NO         # for normal use: ""
1.138     martinh    47: ldapd_flags=NO         # for normal use: ""
1.142     robert     48: inetd_flags=""         # for normal use: ""
                     49: rwhod_flags=NO         # for normal use: ""
1.143     robert     50: portmap_flags=NO       # for normal use: ""
1.145     ajacouto   51: kdc_flags=NO           # for normal use: "" see 'info heimdal' for help
                     52: kadmind_flags=NO       # for normal use: ""
                     53: kpasswdd_flags=NO      # for normal use: ""
1.150     robert     54: btd_flags=NO           # for normal use: ""
1.154     robert     55: amd_flags=NO           # for normal use: ""
1.75      deraadt    56:
                     57: # use -u to disable chroot, see httpd(8)
                     58: httpd_flags=NO         # for normal use: "" (or "-DSSL" after reading ssl(8))
1.69      millert    59:
1.77      deraadt    60: # For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
1.69      millert    61: sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m"
1.126     jmc        62: spamd_flags=NO         # for normal use: "" and see spamd(8)
1.123     beck       63: spamd_black=NO         # set to YES to run spamd without greylisting
1.104     henning    64: spamlogd_flags=""      # use eg. "-i interface" and see spamlogd(8)
1.33      downsj     65:
                     66: # Set to NO if ftpd is running out of inetd
1.39      deraadt    67: ftpd_flags=NO          # for non-inetd use: "-D"
1.41      fgsch      68:
                     69: # Set to NO if identd is running out of inetd
1.89      henning    70: identd_flags=NO                # for non-inetd use: "-b -elo"
1.19      deraadt    71:
                     72: # On some architectures, you must also disable console getty in /etc/ttys
1.39      deraadt    73: xdm_flags=NO           # for normal use: ""
1.52      aaron      74:
1.108     deraadt    75: # For enabling console mouse support (i386 alpha amd64)
1.60      aaron      76: wsmoused_flags=NO      # for ps/2 or usb mice: "", serial: "-p /dev/cua00"
1.1       deraadt    77:
                     78: # set the following to "YES" to turn them on
1.133     henning    79: pf=YES                 # Packet filter / NAT
1.110     hshoexer   80: ipsec=NO               # IPsec
1.131     uwe        81: bt=NO                  # Bluetooth
1.78      deraadt    82: portmap=NO             # Note: inetd(8) rpc services need portmap too
1.56      krw        83: check_quotas=YES       # NO may be desirable in some YP environments
1.121     ajacouto   84: accounting=NO          # process accounting (using /var/account/acct)
1.63      hin        85:
1.32      art        86: afs=NO                 # mount and run afs
1.35      niklas     87:
                     88: # Multicast routing configuration
1.90      david      89: # Please look at netstart(8) for a detailed description if you change these
1.35      niklas     90: multicast_host=NO      # Route all multicast packets to a single interface
                     91: multicast_router=NO    # A multicast routing daemon will be run, e.g. mrouted
1.1       deraadt    92:
                     93: # miscellaneous other flags
1.72      tholo      94: savecore_flags=                        # "-z" to compress
1.148     ajacouto   95: ypserv_flags=NO                        # add more flags, eg. -1 for YP v1, -d for DNS etc
1.155     deraadt    96: ypldap_flags=NO                        # for normal use: ""
1.92      deraadt    97: yppasswdd_flags=NO             # "-d /etc/yp" if passwd files are in /etc/yp
1.149     ajacouto   98: nfsd_flags=NO                  # for normal use: "-tun 4" and see nfsd(8)
                     99: mountd_flags=NO                        # for normal use: ""
                    100: lockd_flags=NO                 # for normal use: ""
                    101: statd_flags=NO                 # for normal use: ""
1.1       deraadt   102: amd_master=/etc/amd/master     # AMD 'master' map
1.139     jmc       103: syslogd_flags=                 # add more flags, e.g. "-u -a /chroot/dev/log"
1.65      kjell     104: pf_rules=/etc/pf.conf          # Packet filter rules file
1.110     hshoexer  105: ipsec_rules=/etc/ipsec.conf    # IPsec rules file
1.131     uwe       106: bt_rules=/etc/bt.conf          # Bluetooth rules file
1.139     jmc       107: pflogd_flags=                  # add more flags, e.g. "-s 256"
1.93      beck      108: afsd_flags=                    # Flags passed to afsd
1.87      pvalchev  109: shlib_dirs=                    # extra directories for ldconfig, separated
                    110:                                # by space
1.141     ajacouto  111:
1.144     ajacouto  112: # rc.d(8) packages scripts
1.141     ajacouto  113: # started in the specified order and stopped in reverse order
1.152     ajacouto  114: pkg_scripts=
1.45      deraadt   115:
                    116: local_rcconf="/etc/rc.conf.local"
1.49      todd      117:
1.149     ajacouto  118: unset inetd_flags rwhod_flags portmap_flags kdc_flags kadmind_flags
                    119: unset kpasswdd_flags btd_flags nfsd_flags mountd_flags lockd_flags
1.156     robert    120: unset statd_flags amd_flags
1.142     robert    121:
1.49      todd      122: [ -f ${local_rcconf} ] && . ${local_rcconf} # Do not edit this line
1.151     robert    123:
                    124: # special care needed for spamlogd to avoid starting it up and failing
                    125: # all the time
                    126: if [  X"${spamd_flags}" = X"NO" -o X"${spamd_black}" != X"NO" ]; then
                    127:        spamlogd_flags=NO
1.154     robert    128: fi
                    129:
                    130: # special care needed for pflogd to avoid starting it up and failing
                    131: # if pf is not enabled
1.157     david     132: if [ X"${pf}" = X"NO" ]; then
1.154     robert    133:        pflogd_flags=NO
1.151     robert    134: fi
1.142     robert    135:
1.145     ajacouto  136: # backward compatibility
1.142     robert    137: : ${inetd_flags=$([ X"${inetd-YES}" = XYES ] || echo NO)}
                    138: : ${rwhod_flags=$([ X"${rwhod-NO}" = XYES ] || echo NO)}
1.143     robert    139: : ${portmap_flags=$([ X"${portmap-NO}" = XYES ] || echo NO)}
1.145     ajacouto  140: : ${kdc_flags=$([ X"${krb5_master_kdc-NO}" = XYES -o X"${krb5_slave_kdc-NO}" = XYES ] || echo NO)}
                    141: : ${kadmind_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
                    142: : ${kpasswdd_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)}
1.147     robert    143: : ${btd_flags=$([ X"${bt-NO}" = XYES ] || echo NO)}
1.149     ajacouto  144: : ${nfsd_flags=$([ X"${nfs_server-NO}" = XYES ] && echo "-tun 4" || echo NO)}
                    145: : ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)}
                    146: : ${lockd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
                    147: : ${statd_flags=$([ X"${lockd-NO}" = XYES ] || echo NO)}
1.150     robert    148: : ${amd_flags=$([ X"${amd-NO}" = XYES ] || echo NO)}