rc revision 1.119 1 1.119 perry # $NetBSD: rc,v 1.119 1999/03/19 00:35:44 perry Exp $
2 1.73 perry # originally from: @(#)rc 8.2 (Berkeley) 3/17/94
3 1.1 cgd
4 1.1 cgd # System startup script run by init on autoboot
5 1.1 cgd # or after single-user.
6 1.1 cgd # Output and error are redirected to console by init,
7 1.1 cgd # and the console is the controlling terminal.
8 1.1 cgd
9 1.1 cgd stty status '^T'
10 1.1 cgd
11 1.1 cgd # Set shell to ignore SIGINT (2), but not children;
12 1.1 cgd # shell catches SIGQUIT (3) and returns to single user after fsck.
13 1.1 cgd trap : 2
14 1.1 cgd trap : 3 # shouldn't be needed
15 1.1 cgd
16 1.68 mycroft export HOME=/
17 1.96 jonathan export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
18 1.50 thorpej
19 1.50 thorpej # Configure ccd devices.
20 1.63 mrg if [ -f /etc/ccd.conf ]; then
21 1.50 thorpej ccdconfig -C
22 1.50 thorpej fi
23 1.107 tron
24 1.107 tron # Configure raid devices.
25 1.107 tron for dev in 0 1 2 3; do
26 1.107 tron if [ -f /etc/raid$dev.conf ]; then
27 1.107 tron raidctl -c /etc/raid$dev.conf raid$dev
28 1.107 tron raidctl -r raid$dev
29 1.107 tron fi
30 1.107 tron done
31 1.1 cgd
32 1.79 thorpej # Add all block-type swap devices; these might be necessary
33 1.79 thorpej # during disk checks.
34 1.79 thorpej swapctl -A -t blk
35 1.79 thorpej
36 1.63 mrg if [ -e /fastboot ]; then
37 1.38 cgd echo "Fast boot: skipping disk checks."
38 1.68 mycroft elif [ "$1" = autoboot ]; then
39 1.38 cgd echo "Automatic boot in progress: starting file system checks."
40 1.1 cgd fsck -p
41 1.1 cgd case $? in
42 1.1 cgd 0)
43 1.1 cgd ;;
44 1.1 cgd 2)
45 1.1 cgd exit 1
46 1.1 cgd ;;
47 1.1 cgd 4)
48 1.35 cgd echo "Rebooting..."
49 1.1 cgd reboot
50 1.38 cgd echo "Reboot failed; help!"
51 1.1 cgd exit 1
52 1.1 cgd ;;
53 1.1 cgd 8)
54 1.38 cgd echo "Automatic file system check failed; help!"
55 1.1 cgd exit 1
56 1.1 cgd ;;
57 1.1 cgd 12)
58 1.38 cgd echo "Boot interrupted."
59 1.1 cgd exit 1
60 1.1 cgd ;;
61 1.1 cgd 130)
62 1.1 cgd # interrupt before catcher installed
63 1.1 cgd exit 1
64 1.1 cgd ;;
65 1.1 cgd *)
66 1.38 cgd echo "Unknown error; help!"
67 1.1 cgd exit 1
68 1.1 cgd ;;
69 1.1 cgd esac
70 1.1 cgd fi
71 1.1 cgd
72 1.38 cgd trap "echo 'Boot interrupted.'; exit 1" 3
73 1.1 cgd
74 1.1 cgd umount -a >/dev/null 2>&1
75 1.83 drochner mount /
76 1.1 cgd rm -f /fastboot # XXX (root now writeable)
77 1.40 cgd
78 1.90 veego if [ -f /etc/rc.subr ]; then
79 1.90 veego . /etc/rc.subr
80 1.89 cjs else
81 1.90 veego echo "Can't read /etc/rc.subr; aborting."
82 1.89 cjs exit 1;
83 1.89 cjs fi
84 1.89 cjs
85 1.71 mycroft if [ -f /etc/rc.conf ]; then
86 1.63 mrg . /etc/rc.conf
87 1.63 mrg fi
88 1.63 mrg
89 1.89 cjs if [ "$rc_configured" != YES ]; then
90 1.89 cjs echo "/etc/rc.conf is not configured. Multiuser boot aborted."
91 1.89 cjs exit 1
92 1.89 cjs fi
93 1.89 cjs
94 1.40 cgd # set flags on ttys. (do early, in case they use tty for SLIP in netstart)
95 1.40 cgd echo 'setting tty flags'
96 1.40 cgd ttyflags -a
97 1.1 cgd
98 1.83 drochner # load kernel modules specified in /etc/lkm.conf if the /usr filesystem
99 1.83 drochner # is already present with "/" or can be mounted now
100 1.93 drochner if checkyesno lkm && [ -f /etc/rc.lkm ]; then
101 1.83 drochner mount /usr >/dev/null 2>&1
102 1.83 drochner if [ -x /usr/bin/ld ]; then
103 1.83 drochner lkmstage=BEFORENET
104 1.83 drochner . /etc/rc.lkm
105 1.83 drochner fi
106 1.63 mrg fi
107 1.63 mrg
108 1.1 cgd # set hostname, turn on network
109 1.1 cgd echo 'starting network'
110 1.76 scottr sh /etc/netstart
111 1.76 scottr if [ $? -ne 0 ]; then
112 1.76 scottr exit 1
113 1.76 scottr fi
114 1.1 cgd
115 1.95 drochner for fs in /usr /var $critical_filesystems; do
116 1.95 drochner mount | (
117 1.95 drochner ismounted=no
118 1.95 drochner while read what _on on _type type; do
119 1.95 drochner if [ $on = $fs ]; then
120 1.95 drochner ismounted=yes
121 1.95 drochner fi
122 1.95 drochner done
123 1.95 drochner if [ $ismounted = no ]; then
124 1.95 drochner mount $fs >/dev/null 2>&1
125 1.95 drochner fi
126 1.95 drochner )
127 1.95 drochner done
128 1.99 veego
129 1.99 veego # Network Address Translation...
130 1.100 lukem if checkyesno ipnat && [ -f /etc/ipnat.conf ]; then
131 1.99 veego echo 'installing NAT rules ... '
132 1.100 lukem if ! checkyesno ipfilter || [ ! -f /etc/ipf.conf ]; then
133 1.99 veego ipf -E -Fa
134 1.99 veego fi
135 1.99 veego ipnat -F -f /etc/ipnat.conf
136 1.99 veego fi
137 1.79 thorpej
138 1.79 thorpej # "Critical" file systems are now mounted. Go ahead and swap
139 1.79 thorpej # to files now, since they will be residing in the critical file
140 1.79 thorpej # systems (or, at least, better).
141 1.79 thorpej swapctl -A -t noblk
142 1.97 mrg
143 1.97 mrg # Check for no swap, and warn about it unless that is desired.
144 1.100 lukem if ! checkyesno no_swap; then
145 1.97 mrg swapctl -s | grep 'no swap devices configured' > /dev/null && \
146 1.97 mrg echo "WARNING: no swap space configured!"
147 1.97 mrg fi
148 1.26 deraadt
149 1.41 jtc # clean up left-over files
150 1.41 jtc rm -f /etc/nologin
151 1.41 jtc rm -f /var/spool/lock/LCK.*
152 1.41 jtc rm -f /var/spool/uucp/STST/*
153 1.45 cgd (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
154 1.108 abs
155 1.111 mrg # get the system dmesg output, hopefully containing the boot messages
156 1.111 mrg # $dmesg_flags is imported from /etc/rc.conf
157 1.111 mrg if checkyesno dmesg; then
158 1.111 mrg dmesg $dmesg_flags > /var/run/dmesg.boot
159 1.111 mrg fi
160 1.41 jtc
161 1.84 veego # start the system logger first, so that all messages from daemons
162 1.84 veego # are logged, then start savecore to get a dump on low memory systems
163 1.84 veego # and then start the name server.
164 1.63 mrg
165 1.89 cjs if checkyesno syslogd; then
166 1.63 mrg echo 'starting system logger'
167 1.119 perry # Transitional symlink for old binaries
168 1.119 perry if [ ! -h /dev/log ] ; then
169 1.119 perry ln -sf /var/run/log /dev/log
170 1.119 perry fi
171 1.119 perry rm -f /var/run/log
172 1.63 mrg syslogd $syslogd_flags
173 1.94 lukem fi
174 1.94 lukem
175 1.94 lukem # Enable ipmon (only useful if ipfilter is running)
176 1.94 lukem # NOTE: requires the IPFILTER_LOG kernel option.
177 1.94 lukem if checkyesno ipmon; then
178 1.94 lukem echo 'starting ipmon'
179 1.94 lukem ipmon $ipmon_flags &
180 1.63 mrg fi
181 1.63 mrg
182 1.84 veego # /var/crash should be a directory or a symbolic link
183 1.84 veego # to the crash directory if core dumps are to be saved.
184 1.89 cjs if checkyesno savecore; then
185 1.106 hubertf if [ -d /var/crash/. ]; then
186 1.89 cjs echo checking for core dump...
187 1.89 cjs savecore $savecore_flags /var/crash
188 1.89 cjs else
189 1.89 cjs logger -s "WARNING: no /var/crash directory; savecore not run."
190 1.84 veego fi
191 1.84 veego fi
192 1.84 veego
193 1.89 cjs if checkyesno named; then
194 1.89 cjs echo 'starting name server'; named $named_flags
195 1.89 cjs fi
196 1.89 cjs
197 1.89 cjs # set time, if requested
198 1.89 cjs if checkyesno ntpdate; then
199 1.91 mikel if [ -z "$ntpdate_hosts" ]; then
200 1.101 lukem ntpdate_hosts=`awk '
201 1.101 lukem /^server[ \t]*127.127/ {next}
202 1.115 bad /^(server|peer)/ {print $2}
203 1.101 lukem ' </etc/ntp.conf`
204 1.89 cjs fi
205 1.89 cjs if [ -n "$ntpdate_hosts" ]; then
206 1.89 cjs echo 'Setting date via ntp.'
207 1.102 lukem ntpdate -b -s $ntpdate_hosts
208 1.67 mycroft fi
209 1.63 mrg fi
210 1.63 mrg
211 1.84 veego # now start the rpc servers, for YP server/client.
212 1.63 mrg echo -n 'starting rpc daemons:'
213 1.63 mrg
214 1.63 mrg # note that portmap is generally required for all other rpc services.
215 1.89 cjs if checkyesno portmap; then
216 1.109 jwise echo -n ' portmap'; portmap $portmap_flags
217 1.63 mrg fi
218 1.63 mrg
219 1.89 cjs if checkyesno ypserv; then
220 1.63 mrg echo -n ' ypserv'; ypserv $ypserv_flags
221 1.63 mrg fi
222 1.63 mrg
223 1.89 cjs if checkyesno ypbind; then
224 1.63 mrg echo -n ' ypbind'; ypbind $ypbind_flags
225 1.63 mrg fi
226 1.63 mrg
227 1.89 cjs if checkyesno yppasswdd; then
228 1.63 mrg echo -n ' rpc.yppasswdd'; rpc.yppasswdd $yppasswdd_flags
229 1.63 mrg fi
230 1.63 mrg
231 1.89 cjs if checkyesno bootparamd; then
232 1.89 cjs if [ -r /etc/bootparams ]; then
233 1.89 cjs echo -n ' rpc.bootparamd'; rpc.bootparamd $bootparamd_flags
234 1.89 cjs else
235 1.89 cjs echo
236 1.89 cjs logger -s "WARNING: /etc/bootparams not found. " \
237 1.89 cjs "bootparamd not started."
238 1.67 mycroft fi
239 1.63 mrg fi
240 1.63 mrg
241 1.84 veego echo '.'
242 1.84 veego
243 1.84 veego # load kernel modules specified in /etc/lkm.conf
244 1.89 cjs if checkyesno lkm; then
245 1.89 cjs if [ -r /etc/rc.lkm ]; then
246 1.89 cjs lkmstage=BEFOREMOUNT
247 1.89 cjs . /etc/rc.lkm
248 1.89 cjs else
249 1.89 cjs logger -s "WARNING: /etc/rc.lkm not found; LKMs not loaded."
250 1.89 cjs fi
251 1.84 veego fi
252 1.84 veego
253 1.84 veego mount -a
254 1.84 veego
255 1.84 veego # now start the rpc servers, for NFS server/client.
256 1.90 veego echo -n 'starting nfs daemons:'
257 1.84 veego
258 1.67 mycroft nfs_locking=NO
259 1.67 mycroft
260 1.89 cjs if checkyesno nfs_server; then
261 1.89 cjs if [ -r /etc/exports ]; then
262 1.89 cjs rm -f /var/db/mountdtab
263 1.89 cjs echo -n > /var/db/mountdtab
264 1.89 cjs echo -n ' mountd'; mountd $mountd_flags
265 1.89 cjs echo -n ' nfsd'; nfsd $nfsd_flags
266 1.100 lukem nfs_locking=YES
267 1.89 cjs else
268 1.89 cjs echo
269 1.89 cjs logger -s "WARNING: /etc/exports not readable; " \
270 1.89 cjs "NFS server not started."
271 1.69 mycroft fi
272 1.1 cgd fi
273 1.63 mrg
274 1.89 cjs if checkyesno nfs_client; then
275 1.63 mrg echo -n ' nfsiod'; nfsiod $nfsiod_flags
276 1.100 lukem nfs_locking=YES
277 1.66 scottr fi
278 1.66 scottr
279 1.100 lukem if checkyesno nfs_locking; then
280 1.89 cjs if checkyesno statd; then
281 1.71 mycroft echo -n ' rpc.statd'; rpc.statd $statd_flags
282 1.66 scottr fi
283 1.89 cjs if checkyesno lockd; then
284 1.71 mycroft echo -n ' rpc.lockd'; rpc.lockd $lockd_flags
285 1.66 scottr fi
286 1.63 mrg fi
287 1.63 mrg
288 1.89 cjs if checkyesno amd; then
289 1.89 cjs if [ -d "$amd_dir" ]; then
290 1.89 cjs if [ -r "$amd_master" ]; then
291 1.89 cjs echo -n ' amd'
292 1.104 tron amd $amd_flags -p -a $amd_dir \
293 1.104 tron `sed s/#.*$// <$amd_master` >/var/run/amd.pid
294 1.89 cjs else
295 1.89 cjs echo
296 1.89 cjs logger -s "WARNING: \$amd_master ($amd_master)not " \
297 1.89 cjs "readable; amd not started."
298 1.89 cjs fi
299 1.89 cjs else
300 1.89 cjs echo
301 1.89 cjs logger -s "WARNING: \$amd_dir ($amd_dir) not a directory; " \
302 1.89 cjs "amd not started."
303 1.67 mycroft fi
304 1.63 mrg fi
305 1.63 mrg
306 1.1 cgd echo '.'
307 1.83 drochner
308 1.63 mrg if [ -f /sbin/ldconfig ]; then
309 1.63 mrg echo 'creating runtime link editor directory cache.'
310 1.88 thorpej ldconfig
311 1.63 mrg fi
312 1.83 drochner
313 1.83 drochner # load kernel modules specified in /etc/lkm.conf
314 1.89 cjs if checkyesno lkm && [ -f /etc/rc.lkm ]; then
315 1.83 drochner lkmstage=AFTERMOUNT
316 1.83 drochner . /etc/rc.lkm
317 1.1 cgd fi
318 1.1 cgd
319 1.112 mrg # if $securelevel is set, change it here, else if it is 0, change
320 1.112 mrg # it to 1 here, before we start login services.
321 1.113 mrg if [ -n "$securelevel" ]; then
322 1.112 mrg echo -n 'setting securelevel: '
323 1.112 mrg sysctl -w kern.securelevel=$securelevel
324 1.112 mrg else
325 1.116 frueauf securelevel=`sysctl -n kern.securelevel`
326 1.112 mrg if [ x"$securelevel" = x0 ]; then
327 1.112 mrg echo -n 'setting securelevel: '
328 1.112 mrg sysctl -w kern.securelevel=1
329 1.112 mrg fi
330 1.112 mrg fi
331 1.112 mrg
332 1.89 cjs echo -n 'checking quotas:'; quotacheck -a; echo ' done.'
333 1.47 deraadt quotaon -a
334 1.1 cgd
335 1.1 cgd # build ps databases
336 1.2 cgd echo 'building databases...'
337 1.11 cgd kvm_mkdb /netbsd
338 1.1 cgd dev_mkdb
339 1.1 cgd
340 1.1 cgd chmod 666 /dev/tty[pqrs]*
341 1.1 cgd
342 1.1 cgd # check the password temp/lock file
343 1.1 cgd if [ -f /etc/ptmp ]
344 1.1 cgd then
345 1.1 cgd logger -s -p auth.err \
346 1.1 cgd 'password file may be incorrect -- /etc/ptmp exists'
347 1.1 cgd fi
348 1.1 cgd
349 1.112 mrg # XXX replace me with a script that works!
350 1.85 perry virecovery=`echo /var/tmp/vi.recover/recover.*`
351 1.32 mycroft if [ "$virecovery" != "/var/tmp/vi.recover/recover.*" ]; then
352 1.32 mycroft echo preserving editor files
353 1.32 mycroft for i in $virecovery; do
354 1.32 mycroft sendmail -t < $i
355 1.32 mycroft done
356 1.32 mycroft fi
357 1.1 cgd
358 1.1 cgd echo clearing /tmp
359 1.1 cgd
360 1.65 mikel # Prune quickly with one rm, then use find to clean up /tmp/[lq]* (this
361 1.65 mikel # is not needed with mfs /tmp, but doesn't hurt anything).
362 1.1 cgd (cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
363 1.46 deraadt find . ! -name . ! -name lost+found ! -name quota.user \
364 1.46 deraadt ! -name quota.group -exec rm -rf -- {} \; -type d -prune)
365 1.1 cgd
366 1.74 perry # Update kernel info in /etc/motd
367 1.74 perry # Must be done *before* interactive logins are possible to prevent
368 1.74 perry # possible race conditions.
369 1.89 cjs if checkyesno update_motd; then
370 1.74 perry echo 'updating motd.'
371 1.74 perry if [ ! -f /etc/motd ]; then
372 1.74 perry install -c -o root -g wheel -m 664 /dev/null /etc/motd
373 1.74 perry fi
374 1.74 perry T=/tmp/_motd
375 1.74 perry rm -f $T
376 1.74 perry sysctl -n kern.version | sed 1q > $T
377 1.74 perry echo "" >> $T
378 1.74 perry sed '1,/^$/d' < /etc/motd >> $T
379 1.74 perry cmp -s $T /etc/motd || cp $T /etc/motd
380 1.74 perry rm -f $T
381 1.74 perry fi
382 1.74 perry
383 1.34 cgd if [ -f /var/account/acct ]; then
384 1.34 cgd echo 'turning on accounting'; accton /var/account/acct
385 1.34 cgd fi
386 1.1 cgd
387 1.1 cgd echo -n standard daemons:
388 1.89 cjs if checkyesno update; then
389 1.70 mycroft echo -n ' update'; update $update_flags
390 1.70 mycroft fi
391 1.110 jwise if checkyesno cron; then
392 1.110 jwise echo -n ' cron'; cron
393 1.110 jwise fi
394 1.1 cgd echo '.'
395 1.1 cgd
396 1.63 mrg # now start all the other daemons
397 1.1 cgd echo -n starting network daemons:
398 1.1 cgd
399 1.89 cjs if checkyesno gated && checkyesno routed; then
400 1.89 cjs echo
401 1.89 cjs logger -s "WARNING: gated and routed both requested to be run: " \
402 1.89 cjs "running only gated."
403 1.89 cjs routed=NO
404 1.89 cjs fi
405 1.89 cjs
406 1.89 cjs if checkyesno gated; then
407 1.89 cjs if [ -r /etc/gated.conf ]; then
408 1.89 cjs echo -n ' gated'; gated $gated_flags
409 1.89 cjs else
410 1.89 cjs logger -s "WARNING: no /etc/gated.conf; gated not started."
411 1.67 mycroft fi
412 1.89 cjs fi
413 1.89 cjs
414 1.89 cjs if checkyesno routed; then
415 1.48 mycroft echo -n ' routed'; routed $routed_flags
416 1.1 cgd fi
417 1.1 cgd
418 1.89 cjs if checkyesno mrouted; then
419 1.55 thorpej echo -n ' mrouted'; mrouted $mrouted_flags
420 1.55 thorpej fi
421 1.55 thorpej
422 1.89 cjs if checkyesno timed; then
423 1.67 mycroft echo -n ' timed'; timed $timed_flags
424 1.63 mrg fi
425 1.63 mrg
426 1.89 cjs if checkyesno xntpd; then
427 1.67 mycroft echo -n ' xntpd'; xntpd $xntpd_flags
428 1.61 mrg fi
429 1.61 mrg
430 1.89 cjs if checkyesno dhcpd; then
431 1.89 cjs if [ -r /etc/dhcpd.conf ]; then
432 1.89 cjs echo -n ' dhcpd'; dhcpd $dhcpd_flags
433 1.89 cjs else
434 1.89 cjs echo
435 1.89 cjs logger -s "WARNING: /etc/dhcpd.conf not readable; " \
436 1.89 cjs "dhcpd not started."
437 1.67 mycroft fi
438 1.29 mycroft fi
439 1.29 mycroft
440 1.89 cjs if checkyesno rwhod; then
441 1.48 mycroft echo -n ' rwhod'; rwhod
442 1.1 cgd fi
443 1.1 cgd
444 1.89 cjs if checkyesno lpd; then
445 1.89 cjs echo -n ' lpd'; lpd $lpd_flags
446 1.60 tls fi
447 1.60 tls
448 1.63 mrg # We call sendmail with a full path so that SIGHUP works.
449 1.89 cjs if checkyesno sendmail; then
450 1.89 cjs if [ -r /etc/sendmail.cf ]; then
451 1.89 cjs echo -n ' sendmail'; /usr/sbin/sendmail $sendmail_flags
452 1.89 cjs else
453 1.89 cjs echo
454 1.89 cjs logger -s "WARNING: /etc/sendmail.cf not readable; " \
455 1.89 cjs "sendmail not started."
456 1.67 mycroft fi
457 1.60 tls fi
458 1.60 tls
459 1.96 jonathan # Start xfs before boot daemons, so its ready before client xterminals.
460 1.96 jonathan if checkyesno xfs; then
461 1.96 jonathan echo -n ' xfs'; xfs $xfs_flags &
462 1.98 perry sleep 2
463 1.96 jonathan fi
464 1.96 jonathan
465 1.89 cjs if checkyesno rarpd; then
466 1.89 cjs if [ -r /etc/ethers ]; then
467 1.89 cjs echo -n ' rarpd'; rarpd $rarpd_flags
468 1.89 cjs else
469 1.89 cjs echo
470 1.89 cjs logger -s "WARNING: /etc/ethers not readable; " \
471 1.89 cjs "rarpd not started."
472 1.67 mycroft fi
473 1.60 tls fi
474 1.60 tls
475 1.89 cjs if checkyesno rbootd; then
476 1.89 cjs if [ -r /etc/rbootd.conf ]; then
477 1.89 cjs echo -n ' rbootd'; rbootd $rbootd_flags
478 1.89 cjs else
479 1.89 cjs echo
480 1.89 cjs logger -s "WARNING: /etc/rbootd.conf not readable; " \
481 1.111 mrg "rbootd not started."
482 1.67 mycroft fi
483 1.72 cjs fi
484 1.72 cjs
485 1.89 cjs if checkyesno mopd; then
486 1.72 cjs echo -n ' mopd'; mopd $mopd_flags
487 1.86 perry fi
488 1.86 perry
489 1.89 cjs if checkyesno apmd; then
490 1.86 perry echo -n ' apmd'; apmd $apmd_flags
491 1.103 mrg fi
492 1.103 mrg
493 1.103 mrg if checkyesno screenblank; then
494 1.103 mrg echo -n ' screenblank'; screenblank $screenblank_flags
495 1.52 thorpej fi
496 1.52 thorpej
497 1.89 cjs if checkyesno inetd; then
498 1.89 cjs if [ -r /etc/inetd.conf ]; then
499 1.89 cjs echo -n ' inetd'; inetd $inetd_flags
500 1.89 cjs else
501 1.89 cjs echo
502 1.89 cjs logger -s "WARNING: /etc/inetd.conf not readable; " \
503 1.89 cjs "inetd not started."
504 1.67 mycroft fi
505 1.105 augustss fi
506 1.105 augustss
507 1.105 augustss if checkyesno usbd; then
508 1.105 augustss echo -n ' usbd'; usbd $usbd_flags
509 1.96 jonathan fi
510 1.96 jonathan
511 1.96 jonathan if checkyesno xdm; then
512 1.96 jonathan echo -n ' xdm'; xdm $xdm_flags
513 1.30 mycroft fi
514 1.30 mycroft
515 1.1 cgd echo '.'
516 1.73 perry
517 1.73 perry # Kerberos runs ONLY on the Kerberos server machine
518 1.89 cjs if checkyesno kerberos; then
519 1.73 perry echo -n 'starting kerberos daemons:'
520 1.73 perry echo -n ' kerberos'; kerberos >> /var/log/kerberos.log &
521 1.73 perry echo -n ' kadmind'; kadmind -n >> /var/log/kadmind.log &
522 1.73 perry echo '.'
523 1.117 drochner fi
524 1.117 drochner
525 1.117 drochner if checkyesno wscons && [ -f /etc/rc.wscons ]; then
526 1.117 drochner echo 'configuring wscons'
527 1.118 drochner /bin/sh /etc/rc.wscons $wscons_flags
528 1.73 perry fi
529 1.1 cgd
530 1.25 mycroft . /etc/rc.local
531 1.1 cgd
532 1.1 cgd date
533 1.1 cgd exit 0
534