[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Shutdown hooks



Hi,

 I was trying to find out if there are any shutdown hooks.
What i mean by this is that i must be able to have some conditions met before actual shutdown starts.

 Eg:- Suppose there is a very important process running, the hook must
      check this and if the hook returns non-zero, the system must
      refuse a requested shutdown.

I can write a wrapper to /sbin/shutdown for doing this, but i am just trying to find out if there is any method already available for doing this ?


thanks

--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
The box said "Requires Windows 95, NT, or better", so I installed Linux.


Reply to: