Just about on the edge of this topic:

We run a 24x7 RedHat server and would like
it to *not* drop us to a root shell when the fs
is corrupted due to a power fail, since we're
usually not there to answer the questions.

How?

I've skimmed the fsck manpages and came up
with the following:

   fsck -V -p -y $fsckoptions

This will automatically repair errors (-p) and
answer 'Yes' to all questions.

1. Should I leave the -y part out since -p
   -p already takes care of that? And questions
   like '.... ignore?' should *not* be answered with
   'Yes' should they/

2. When fsck gives an exit value >1 the system
   needs rebooting. I want the sytem to give me
   five seconds to hit enter and run a shell or, when
   no keys are hit, reboot the system.

   I've been looking at 'expect' and worked out a
   small script but since it's not statically linked, am
   I safe to use it anyway?

   root@wise:/etc/rc.d# ldd /usr/bin/expect
        libexpect5.24.so => /usr/lib/libexpect5.24.so
(0x40002000)
        libtcl8.0.so => /usr/lib/libtcl8.0.so (0x40022000)
        libutil.so.1 => /lib/libutil.so.1 (0x4007f000)
        libdl.so.2 => /lib/libdl.so.2 (0x40082000)
        libm.so.6 => /lib/libm.so.6 (0x40087000)
        libc.so.6 => /lib/libc.so.6 (0x400a0000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)

   Or does anyone have an expect.static for me?

Thanks,

--
laurens van alphen      craxx web designers
[EMAIL PROTECTED]        http://craxx.com/


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to