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

Re: Shutdown hooks



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/init.d and
> > then create symlinks in /etc/rc<n>.d, best handled with update-rc.d.
> 
> The last statement directly contradicts the third paragraph of update-rc.d(8), 
> which encourages administrators to edit the links dirctly (or use runlevel 
> editors like sysv-rc-conf); perhaps that should be changed...?

No, I believe you are right with regard to using update.rc.d. Creating
a symlink manually would do no harm, and, as you point out from the
manual, may be the better way.

Apologies for not having seen that earlier, and thanks for letting me know.

Kumar
-- 
Kumar Appaiah


Reply to: