Re: Reload configuration file without restart in windows

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

 



André Warnier wrote:
Brian Mearns wrote:
On Mon, Mar 23, 2009 at 1:37 AM, ken <kenbeinside@xxxxxxxxxxxxxx> wrote:
hi,

I'm using Apache 2.2 in Windows2003 Server.
After i change the configuration file. it  takes a very long time during
Apache restart .
Is there any way to reload  configuration file without restart Apache?

Any help will be appreciate.

You can try "graceful" instead of "restart" as the argument to
apachectl, but I don't know that that will be any faster. My guess is
parsing the config file is what's taking so long.

The OP is using Apache under Windows, presumably as a Windows Service. I don't think apachectl is used in that case. I also don't know if the Windows Service version can do the equivalent of the "graceful" or "reload" options. I think it just stops the entire service and restarts it.

Addendum :
This page (which I strongly advise the OP to read in full) :
http://httpd.apache.org/docs/2.2/platform/windows.html
has this to say :

You can also restart a running service and force it to reread its configuration file by using:

httpd.exe -k restart

So maybe to OP could try that and see if it is faster ?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux