multi/single-user mode flag?
Phil OKunewick
okunewck at gondor.cs.psu.edu
Sat May 14 01:41:58 AEST 1988
Is there any nice way for a program to tell whether a generic
unix system is in single-user or multi-user mode? Two ideas here are
to read init's memory (not standard under different unixes) or to check
what processes are running (kludge).
We're running several different versions of unix here, and need
a standard dump routine for everything. Even if dump is modified to do
sane backups on a live filesystem, multi-user mode dumps are impractical.
(20 hours for a Level 0 dump on one of our machines).
Therefore, I want something that will tell my operator "Do not do
it this way you fool" if he tries to dump in multi-user mode.
---Phil OKunewick
okunewck at psuvax1.cs.psu.edu
More information about the Comp.unix.wizards
mailing list