The 'right' way is to rename the script from S99scriptname to
s99scriptname.  Scripts with a lowercase beginning character are
automagically ignored by init.

You can also 'chkconfig scriptname off' if your system uses chkconfig.
You can tell if it uses chkconfig by running 'chkconfig scriptname
--list'

hth,
Rubin


On Fri, 2009-01-23 at 22:32 -0500, Bonnie wrote:
> On Fri, Jan 23, 2009 at 11:23:03PM -0500, Rion D'Luz wrote:
> > On Friday 23 January 2009, Anthony Carrico wrote:
> > > Suppose I want to boot with a particular init script disabled. In
> > > Debian, I could use update-rc.d to remove the rc.d links, then later use
> > > update-rc.d again to bring them back. If I did that, I'd have to note
> > > the priority and the run-levels that were originally used (Does "rcconf"
> > > remember them?).
> > > 
> > > I could edit the init script to exit right away, but that would be a hack.
> > > 
> > > Is there a third way?
> > > 
> > a kludge, but i do it all the time:
> > chmod 644 /etc/init.d/scriptname
> 
> That's what I was thinking. 
> 
> Bonnie
-- 
Rubin Bennett
rbTechnologies, LLC
80 Carleton Boulevard
East Montpelier, VT 05651

(802)223-4448
http://thatitguy.com

"Think for yourselves and let others enjoy the privilege to do so too."
  Voltaire, Essay on Tolerance
  French author, humanist, rationalist, & satirist (1694 - 1778)

Reply via email to