rc.conf revision 1.181
1#!/bin/sh - 2# 3# $OpenBSD: rc.conf,v 1.181 2013/08/09 16:24:54 ajacoutot Exp $ 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!! 14 15# set these to "NO" to turn them off. otherwise, they're used as flags 16ldpd_flags=NO # for normal use: "" 17ripd_flags=NO # for normal use: "" 18mrouted_flags=NO # for normal use: "", if activated 19 # be sure to enable multicast_router below. 20dvmrpd_flags=NO # for normal use: "" 21ospfd_flags=NO # for normal use: "" 22ospf6d_flags=NO # for normal use: "" 23bgpd_flags=NO # for normal use: "" 24rarpd_flags=NO # for normal use: "-a" 25bootparamd_flags=NO # for normal use: "" 26rbootd_flags=NO # for normal use: "" 27sshd_flags="" # for normal use: "" 28named_flags=NO # for normal use: "" 29nsd_flags=NO # for normal use: "" 30ldattach_flags=NO # for normal use: "[options] linedisc cua-device" 31ntpd_flags=NO # for normal use: "" 32isakmpd_flags=NO # for normal use: "" 33iked_flags=NO # for normal use: "" 34sasyncd_flags=NO # for normal use: "" 35mopd_flags=NO # for normal use: "-a" 36apmd_flags=NO # for normal use: "" 37dhcpd_flags=NO # for normal use: "" 38dhcrelay_flags=NO # for normal use: "-i interface [server]" 39rtadvd_flags=NO # for normal use: list of interfaces 40 # be sure to set net.inet6.ip6.forwarding=1 41route6d_flags=NO # for normal use: "" 42 # be sure to set net.inet6.ip6.forwarding=1 43rtsold_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 46 # be sure to set net.inet6.icmp6.rediraccept=1 47lpd_flags=NO # for normal use: "" (or "-l" for debugging) 48sensorsd_flags=NO # for normal use: "" 49hotplugd_flags=NO # for normal use: "" 50watchdogd_flags=NO # for normal use: "" 51ftpproxy_flags=NO # for normal use: "" 52hostapd_flags=NO # for normal use: "" 53ifstated_flags=NO # for normal use: "" 54relayd_flags=NO # for normal use: "" 55snmpd_flags=NO # for normal use: "" 56smtpd_flags=NO # for normal use: "" 57sndiod_flags="" # for normal use: "" 58ldapd_flags=NO # for normal use: "" 59npppd_flags=NO # for normal use: "" 60inetd_flags=NO # for normal use: "" 61rwhod_flags=NO # for normal use: "" 62portmap_flags=NO # for normal use: "" 63 # Note: inetd(8) rpc services need portmap too 64kdc_flags=NO # for normal use: "" see 'info heimdal' for help 65kadmind_flags=NO # for normal use: "" 66kpasswdd_flags=NO # for normal use: "" 67ipropd_master_flags=NO # for normal use: "" 68ipropd_slave_flags=NO # for normal use: "[master hostname]" 69amd_flags=NO # for normal use: "" 70tftpd_flags=NO # for normal use: "[chroot dir]" 71tftpproxy_flags=NO # for normal use: "" 72ldomd_flags=NO # for normal use: "" 73 74# use -u to disable chroot, see httpd(8) 75httpd_flags=NO # for normal use: "" (or "-DSSL" after reading ssl(8)) 76 77# use -u to disable chroot, see nginx(8) 78nginx_flags=NO # for normal use: "" 79slowcgi_flags=NO # for normal use: "" 80 81# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job 82sendmail_flags="-L sm-mta -C/etc/mail/localhost.cf -bd -q30m" 83spamd_flags=NO # for normal use: "" and see spamd(8) 84spamd_black=NO # set to YES to run spamd without greylisting 85spamlogd_flags="" # use eg. "-i interface" and see spamlogd(8) 86 87# Set to NO if ftpd is running out of inetd 88ftpd_flags=NO # for non-inetd use: "" 89 90# Set to NO if identd is running out of inetd 91identd_flags=NO # for non-inetd use: "-el" 92 93# Set to NO if popa3d is running out of inetd 94popa3d_flags=NO # for non-inetd use: "" 95 96# On some architectures, you must also disable console getty in /etc/ttys 97xdm_flags=NO # for normal use: "" 98 99# For enabling console mouse support (i386 alpha amd64) 100wsmoused_flags=NO # for ps/2 or usb mice: "", serial: "-p /dev/cua00" 101 102# set the following to "YES" to turn them on 103pf=YES # Packet filter / NAT 104ipsec=NO # IPsec 105bt=NO # Bluetooth 106check_quotas=YES # NO may be desirable in some YP environments 107accounting=NO # process accounting (using /var/account/acct) 108 109# Multicast routing configuration 110# Please look at netstart(8) for a detailed description if you change these 111multicast_host=NO # Route all multicast packets to a single interface 112multicast_router=NO # A multicast routing daemon will be run, e.g. mrouted 113 114# miscellaneous other flags 115savecore_flags= # "-z" to compress 116ypbind_flags=NO # for normal use: "" 117ypserv_flags=NO # add more flags, eg. -1 for YP v1, -d for DNS etc 118ypldap_flags=NO # for normal use: "" 119yppasswdd_flags=NO # "-d /etc/yp" if passwd files are in /etc/yp 120nfsd_flags=NO # for normal use: "-tun 4" and see nfsd(8) 121mountd_flags=NO # for normal use: "" 122lockd_flags=NO # for normal use: "" 123statd_flags=NO # for normal use: "" 124amd_master=/etc/amd/master # AMD 'master' map 125syslogd_flags= # add more flags, e.g. "-u -a /chroot/dev/log" 126pf_rules=/etc/pf.conf # Packet filter rules file 127ipsec_rules=/etc/ipsec.conf # IPsec rules file 128bt_rules=/etc/bt.conf # Bluetooth rules file 129pflogd_flags= # add more flags, e.g. "-s 256" 130shlib_dirs= # extra directories for ldconfig, separated 131 # by space 132 133# rc.d(8) packages scripts 134# started in the specified order and stopped in reverse order 135pkg_scripts= 136 137unset kadmind_flags kdc_flags kpasswdd_flags mountd_flags nfsd_flags ypbind_flags 138 139[ -f /etc/rc.conf.local ] && . /etc/rc.conf.local 140 141# special care needed for spamlogd to avoid starting it up and failing 142# all the time 143if [ X"${spamd_flags}" = X"NO" -o X"${spamd_black}" != X"NO" ]; then 144 spamlogd_flags=NO 145fi 146 147# special care needed for pflogd to avoid starting it up and failing 148# if pf is not enabled 149if [ X"${pf}" = X"NO" ]; then 150 pflogd_flags=NO 151fi 152 153# backward compatibility 154: ${kadmind_flags=$([ X"${krb5_master_kdc-NO}" = XYES ] || echo NO)} 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)} 157: ${mountd_flags=$([ X"${nfs_server-NO}" = XYES ] || echo NO)} 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)} 160