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

Re: Shutdown hooks



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 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<n>.d, best handled with update-rc.d.

HTH.

Kumar
-- 
Kumar Appaiah

Attachment: signature.asc
Description: Digital signature


Reply to: