Re: Question on need to restart Apache after adding/modifying module

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

 



> >   * it's not terribly safe to modify the configuration structures created
> >     by httpd, they really are applied in a serial manner, not as some state
> >     machine the config state.  Most platforms couldn't unlink a module and
> >     replace it with the same (new build) of a module even if you tried in
> >     a running process (why do you suppose you have to reboot after a kernel
> >     patch anyways?)

On 18.09.07 15:45, Pravin wrote:
> I got this idea from kernel only...
> if you compile any part of kernel as module, then you can insert, remove
> or modify it and then re-insert the kernel-module without restarting
> machine atall :-)
> and Its not that memory expensive in case of kernel...
> 
> But as we are now talking about user-space process, things do change
> I am not sure, but I think that it should be possible to do the same with
> userspace processes also

apache just doed not have functionality of runtime re-configuration without
restarting. Some of the functionality can be done through mod_perl, and
surely most of the functionality can be done with addon module.

However adding or removing of module usually causes reconfiguration of
config file (directives the module implements arte being added/removed), so
it mostly requires rebuilding of configuration in memory.

This is called restart, although you can use graceful restart for more
smooth reconfiguration (not killing child processes)

> I am not very clear about this trade off involved between speed/memory
> and flexibility.
> First I would like to be clear on whether its possible or not to have
> kernel like modules
> in userspace.

In fact, apache modules are the same thing as kernel modules. Note the
above.

-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Boost your system's speed by 500% - DEL C:\WINDOWS\*.*

---------------------------------------------------------------------
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