Re: Restarting apache from child?

[prev] [thread] [next] [Date index for 2005/03/15]

From: Scott Gifford
Subject: Re: Restarting apache from child?
Date: 16:54 on 15 Mar 2005
Maxim Nechaev <nechaev@xxxxxxxxxxxx.xx> 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.

Restarting apache from child?
Maxim Nechaev 23:48 on 13 Mar 2005

Re: Restarting apache from child?
Scott Gifford 16:54 on 15 Mar 2005

Re[2]: Restarting apache from child
Maxim Nechaev 08:16 on 16 Mar 2005

Re: Restarting apache from child
Scott Gifford 14:21 on 16 Mar 2005

RE: Restarting apache from child?
Jain, Abhay K, ALABS 18:05 on 15 Mar 2005

Re: Restarting apache from child?
Scott Gifford 19:10 on 15 Mar 2005

Generated at 21:06 on 16 Mar 2005 by mariachi v0.52