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