|
|
1.1 root 1: .TH RC 8
2: .CT 1 sa_auto
3: .SH NAME
4: rc \- boot script
5: .SH SYNOPSIS
6: .B /etc/rc
7: .SH DESCRIPTION
8: .I Rc
9: is the command script
10: invoked by
11: .IR init (8)
12: to control reboots.
13: During an automatic reboot,
14: .I rc
15: is invoked with the argument
16: .BR autoboot ;
17: typically this invokes
18: .L /etc/fsck -p
19: to repair minor filesystem inconsistencies.
20: If
21: .I rc
22: exits with a successful status,
23: .I init
24: proceeds to multi-user mode.
25: .PP
26: When the system enters multi-user mode,
27: either during an auto-reboot
28: or after the single-user shell terminates,
29: .I rc
30: is invoked without arguments.
31: This usually causes it to
32: mount filesystems,
33: start daemons,
34: clear
35: .FR /tmp ,
36: and perform other housekeeping.
37: .PP
38: If any call to
39: .I rc
40: returns a nonzero status,
41: .I init
42: reverts to single-user mode.
43: .SH EXAMPLES
44: A typical
45: .I rc
46: script:
47: .PP
48: .EX
49: date
50: case $1 in
51: autoboot)
52: echo Autoboot:
53: /etc/fsck -p || {echo "error in reboot"; exit 1}
54: esac
55: /etc/ldpcs /etc/pcs750.bin
56: >/etc/mtab
57: /etc/mount -a
58: /etc/savecore /tmp/dump /dev/ra11
59: /etc/swapon -a
60: trap "" 1 2 3
61: /etc/update
62: /etc/cron &
63: rm -f /tmp/*
64: /usr/lib/asd/rmlocks
65: date >> /usr/adm/lastboot
66: /etc/accton /tmp/acct > /tmp/acct
67: /usr/ipc/mgrs/svcmgr
68: /etc/kdiload
69: /usr/ipc/mgrs/dkhup; sleep 10
70: /usr/ipc/mgrs/dkmgr
71: /usr/netb/setup.go
72: /usr/net/face.go
73: wwv -s
74: .EE
75: .SH SEE ALSO
76: .IR init (8),
77: .IR reboot (8)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.