Re: init.d

[prev] [thread] [next] [lurker] [Date index for 2006/06/23]

From: Paul Orrock
Subject: Re: init.d
Date: 15:32 on 23 Jun 2006
Minty wrote:
> I want to start Apache2 on my Debian Sarge box to test something quick.
> I want to start it just this once for testing, then shut it down again.
> I do not want it to start on boot

Fine, apache2 is set to not start on boot by default as you've discovered.

> $ sudo /etc/init.d/apache2  start
> Not starting apache2 - edit /etc/default/apache2 and change NO_START to 
> be 0.

You're using the init (boot start up) system to try and start it as though it were being booted via init.d and it's rightly telling you "You've told me not to start on boot so I won't"

What you want to do is start apache outside the boot system using the normal apache2ctl script

Sorry to jump on your hate but ...

Paul

Generated at 04:01 on 28 Jun 2006 by mariachi 0.52