What is it? (was Re: Current Run-Level: How can you tell?)
Daniel A. Graifer
dag at fciva.FRANKCAP.COM
Mon May 6 02:29:06 AEST 1991
On our Prime EXL's, which run pretty much Plain Vanilla AT&T SysV 3.1 with
some 3.2 extensions, we have:
0 - Shutdown System
1 - Single User Mode
2 - Normal Multi-User
3 - Multiuser + remote file sharing
4 - Undefined by system
5 - Shutdown and entire ROM diagnostic monitor
6 - Shutdown and reboot
We've defined to state 4 to be system backup. A cron job in the wee dawn
hours does a telinit 4 to start the backup process. We also cleanup the
cron log at that time, since cron isn't running in state 4.
We had to modify some of the scripts in rc2.d: who -r also contains the
previous run level as well as the current one. Some of the scripts do
nothing if the previous state isn't 0, eg. RMTMPFILES, and we wanted these
to run coming out of state 4 as well. (With the backup automated, we've
gone for months without rebooting, so lots of things such as tmp directories
would fill up if we didn't clean them out as part of the nightly backup.)
Dan
--
Daniel A. Graifer Coastal Capital Funding Corp.
Sr. Vice President, Financial Systems 7900 Westpark Dr. Suite A-130
(703)821-3244 McLean, VA 22102
uunet!fciva!dag fciva.FRANKCAP.COM!dag at uunet.uu.net
More information about the Comp.unix.questions
mailing list