Maxim Nechaev <[EMAIL PROTECTED]> writes:

> I need to restart or graceful restart apache server from one of his
> child. It is possible? If yes, how to do this more correctly?

The main Apache process runs as root, and each Apache child process
runs as a less-privileged user, and so would not have permission to
signal the main process to tell it to reload.

You could use a conventional perl script (ie not mod_perl) which is
setuid root (though you'd need to be extraordinarily careful), or have
an external daemon running as root which accepted restart requests on
a UNIX socket, then have your script send these requests.

----ScottG.

Reply via email to