rc.conf revision 1.23 1 # $NetBSD: rc.conf,v 1.23 2001/10/11 07:21:07 lukem Exp $
2 #
3 # /etc/defaults/rc.conf --
4 # default configuration of /etc/rc.conf
5 #
6 # see rc.conf(5) for more information.
7 #
8 # DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING A SYSTEM UPGRADE.
9 # EDIT /etc/rc.conf INSTEAD.
10 #
11
12 #
13 # Use program=YES to enable program, NO to disable it. program_flags are
14 # passed to the program on the command line.
15 #
16
17 # Uncomment this if you want to use local paths in rc.
18 #
19 #export PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin
20
21 # Uncomment the following to execute each /etc/rc.d script in
22 # the current shell rather than in a subshell. This may be
23 # faster on very slow machines that have an expensive fork(2).
24 # NOTE: USE THIS AT YOUR OWN RISK; A ROGUE COMMAND
25 # MAY INADVERTENTLY PREVENT BOOT TO MULTIUSER.
26 #
27 #rc_fast_and_loose=YES
28
29 # If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
30 #
31 do_rcshutdown=YES
32
33 # If this is non-blank, use as the number of seconds to run a watchdog
34 # timer which will terminate /etc/rc.shutdown if the timeout expires.
35 #
36 rcshutdown_timeout=""
37
38
39 # Basic network configuration
40 #
41
42 # Fully Qualified Internet Domain Name (a.k.a. hostname, e.g. foo.baz.edu).
43 # If blank, use /etc/myname.
44 #
45 hostname=""
46
47 # If there's only one way out of your network, set this to the hostname
48 # or the IP address of the router that will get your packets off the LAN.
49 # If blank, use /etc/mygate.
50 #
51 defaultroute=""
52
53 # The NIS domain name (formerly known as Yellow Pages); not in any way
54 # related to Internet domain names.
55 # If blank, use /etc/defaultdomain.
56 #
57 domainname=""
58
59 # Filesystems to mount early in boot-up.
60 # Note that `/var' is needed in $critical_filesystems_beforenet (or
61 # implied as part of `/') as certain services that need /var (such as
62 # dhclient) may be needed to get the network operational enough to mount
63 # the $critical_filesystems.
64 #
65 critical_filesystems_beforenet="/var"
66 critical_filesystems="/usr"
67
68 # Set this to YES if you have purposefully setup no swap partitions and
69 # don't want to be warned about it.
70 #
71 no_swap=NO
72
73 # One-time actions and programs on boot-up.
74 #
75 lkm=NO # run /etc/rc.lkm
76 savecore=YES savecore_flags="-z"
77 clear_tmp=YES # clear /tmp after reboot
78 update_motd=YES # updates /etc/motd
79 dmesg=YES dmesg_flags="" # write /var/run/dmesg.boot
80 accounting=NO # uses /var/account/acct
81 newsyslog=NO newsyslog_flags="" # trim log files
82
83 # NOTE: default coredump name now set in /etc/sysctl.conf
84
85 # Security setting. If $securelevel is non-empty, the system securelevel
86 # is set to this value early in the boot sequence. Otherwise the default
87 # action is taken (see init(8)).
88 #
89 securelevel="" # securelevel to set to
90
91 # To set the IP address of an interface either use
92 # ifconfig_xxN="IP-NO"
93 # where xxN is the interface. If this variable is not set then
94 # contents of the file /etc/ifconfig.xxN is used.
95
96 # Networking startup.
97 #
98 ipfilter=NO # uses /etc/ipf.conf
99 ipnat=NO # uses /etc/ipnat.conf
100 ipsec=NO # uses /etc/ipsec.conf
101 racoon=NO # IKE daemon
102 ipmon=NO ipmon_flags="-Dns" # syslog ipfilter messages
103 auto_ifconfig=YES # config all avail. interfaces
104 net_interfaces="" # used only if above is NO
105 flushroutes=YES # flush routes in netstart
106 dhclient=NO # behave as a DHCP client
107 dhclient_flags="" # blank: config all interfaces
108 ntpdate=NO ntpdate_flags="-b -s" # May need '-u' thru firewall
109 ppp_peers="" # /etc/ppp/peers to call
110 ip6mode=host # host, autohost or router
111 ip6sitelocal=NO # IPv6 sitelocal addrs
112 rtsol=NO rtsol_flags="-a" # for ip6mode=autohost only
113
114 # Special treatment for interfaces that need to be downed on
115 # shutdown (because they might cause unecessary costs or block resources
116 # on the peer). All pppoe* interfaces are automatically included in this
117 # list, add others here manually.
118 # force_down_interfaces=""
119
120 # ALTQ configuration/monitoring daemon
121 altqd=NO altqd_flags=""
122
123 # Daemons required by servers. These are not needed for strictly client use.
124 #
125
126 # inetd is used to start the IP-based services enabled in /etc/inetd.conf
127 #
128 inetd=YES inetd_flags="-l" # -l logs libwrap
129
130 # rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
131 #
132 rpcbind=NO rpcbind_flags="-l" # -l logs libwrap
133
134 # Commonly used daemons.
135 #
136 syslogd=YES syslogd_flags="-s" # -s "secure" unix domain only
137 cron=YES
138 named=NO named_flags="" # see below for named_chrootdir
139 timed=NO timed_flags=""
140 ntpd=NO ntpd_flags=""
141 sendmail=NO sendmail_flags="-bd -q30m"
142 postfix=NO
143 lpd=NO lpd_flags="-s" # -s "secure" unix domain only
144 sshd=NO sshd_flags=""
145
146 # To run the named(8) DNS server as an unprivileged user under a
147 # chroot(2) cage, uncomment the following after migrating the contents
148 # of /etc/namedb to /var/chroot/named/etc/namedb
149 #
150 #named_chrootdir="/var/chroot/named"
151
152 # Routing daemons.
153 #
154 routed=NO routed_flags="-q"
155 gated=NO
156 mrouted=NO mrouted_flags=""
157 route6d=NO route6d_flags=""
158 rtsold=NO rtsold_flags="" # for ip6mode=autohost only
159
160 # Daemons used to boot other hosts over a network.
161 #
162 rarpd=NO rarpd_flags="-a"
163 bootparamd=NO bootparamd_flags=""
164 dhcpd=NO dhcpd_flags="-q"
165 dhcrelay=NO dhcrelay_flags=""
166 rbootd=NO rbootd_flags=""
167 mopd=NO mopd_flags="-a"
168 ndbootd=NO ndbootd_flags="-s /tftpboot /tftpboot/bootyy"
169 rtadvd=NO rtadvd_flags=""
170
171 # X11 daemons.
172 #
173 xfs=NO xfs_flags="" # X11 font server
174 xdm=NO xdm_flags="" # X11 display manager; needs
175 # wscons=YES for local displays.
176
177 # YP (NIS) daemons.
178 #
179 ypbind=NO ypbind_flags=""
180 ypserv=NO ypserv_flags="-d"
181 yppasswdd=NO yppasswdd_flags=""
182
183 # NFS daemons and parameters.
184 #
185 mountd=NO mountd_flags="" # NFS mount requests daemon
186 nfs_client=NO # enable client daemons
187 nfs_server=NO # enable server daemons
188 nfsd_flags="-6tun 4"
189 lockd=NO lockd_flags=""
190 statd=NO statd_flags=""
191 amd=NO amd_flags="-l syslog -x error,noinfo,nostats"
192 amd_dir=/amd # mount dir
193
194 # Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
195 kdc=NO kdc_flags=""
196
197 # ISDN daemon
198 # The network interfaces used for isdn are not useful without the isdnd
199 # running. Therefore, they are usually configured "down" first (e.g., in
200 # /etc/ifconfig.isp0), and need to be marked "up" when the daemon is
201 # running. This will happen automatically for all configured isdn interfaces
202 # if the variable isdn_interfaces is left empty. If this behaviour is not
203 # desired for certain interfaces, set isdn_interfaces to the list of
204 # interfaces where it should happen. To disable it completely, set
205 # the variable isdn_autoupdown to NO.
206 isdnd=NO isdnd_flags=""
207 isdn_autoupdown=YES
208 isdn_interfaces=""
209
210 # Other daemons.
211 #
212 rwhod=NO
213
214 # Hardware daemons.
215 #
216 apmd=NO apmd_flags="" # APM power management daemon.
217 poffd=NO # x68k power switch monitor
218 poffd_flags="'shutdown -p now'"
219 screenblank=NO screenblank_flags="" # wscons and FBIO screenblanker
220
221 # Configuration of "wscons" console driver virtual screens.
222 #
223 wscons=NO wscons_flags="" # setup wscons from wscons.conf
224