"reboot" detection ...

ratheesh kannoth <[email protected]> Sun, 26 Aug 2012 15:34:03 +0530
Newsgroups org.kernel.vger.linux-c-programming,org.kernel.vger.linux-newbie
Message-ID <CAGZFCEFLx9nu4Dcm2iX5bTC+R5GcF63Kp+TW4XUvg8EcGoM5PQ@mail.gmail.com>
Hi,

Is there any way to find that the machine is rebooting.  ?

Say,  i issued  a "reboot" command in one of the Konsole shell. Is
there any way to detect this trigger in kernel space or in userspace ?
Any clue is really appreciated .

Thanks,
Ratheesh
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs