Re: Shutdown hooks

2008-10-27 Thread Kumar Appaiah
On Mon, Oct 27, 2008 at 07:51:36AM -0500, green wrote: > On Sun, 2008.10.12, 286, Kumar Appaiah wrote: > > /etc/rc0.d and /etc/rc6.d should be where you should place hooks for > > running programs as you shut down or restart the machine > > respectively. The convention is to put the scripts in /etc

Re: Shutdown hooks

2008-10-27 Thread green
On Sun, 2008.10.12, 286, Kumar Appaiah wrote: > /etc/rc0.d and /etc/rc6.d should be where you should place hooks for > running programs as you shut down or restart the machine > respectively. The convention is to put the scripts in /etc/init.d and > then create symlinks in /etc/rc.d, best handled w

Re: Shutdown hooks

2008-10-13 Thread Hugo Vanwoerkom
Tzafrir Cohen wrote: On Sun, Oct 12, 2008 at 09:56:00PM +0530, Bhasker C V wrote: 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

Re: Shutdown hooks

2008-10-12 Thread Tzafrir Cohen
On Sun, Oct 12, 2008 at 09:56:00PM +0530, Bhasker C V wrote: > 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 impo

Re: Shutdown hooks

2008-10-12 Thread Kumar Appaiah
On Sun, Oct 12, 2008 at 12:21:50PM -0500, Ron Johnson wrote: >> /etc/rc0.d and /etc/rc6.d should be where you should place hooks for >> running programs as you shut down or restart the machine >> respectively. The convention is to put the scripts in /etc/init.d and >> then create symlinks in /etc/r

Re: Shutdown hooks

2008-10-12 Thread Ron Johnson
On 10/12/08 11:56, Kumar Appaiah wrote: On Sun, Oct 12, 2008 at 09:56:00PM +0530, Bhasker C V wrote: 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 ? /etc/rc0.d and /etc/rc6.d should be where yo

Re: Shutdown hooks

2008-10-12 Thread Kumar Appaiah
On Sun, Oct 12, 2008 at 09:56:00PM +0530, Bhasker C V wrote: > 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 ? /etc/rc0.d and /etc/rc6.d should be where you should place hooks for running prog

Shutdown hooks

2008-10-12 Thread Bhasker C V
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