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

Re: Shutdown hooks



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/rc<n>.d, best handled with update-rc.d.
>
> But it's too late then.  The shutdown can't be stopped, I think.
>
> I'd wrap /sbin/shutdown.

Oh, you're right. I thought that he wanted to shut down the service as
the shutdown occurred.

I guess wrapping the command you use for shutting down is the simplest
way then.

Thanks.

Kumar
-- 
Kumar Appaiah

Attachment: signature.asc
Description: Digital signature


Reply to: