Re: [mod-security-users] Chroot and pid file
Brought to you by:
victorhora,
zimmerletw
|
From: Mark <ad...@as...> - 2004-05-16 19:00:06
|
David Fletcher wrote:
> I'm using mod_security-1.8dev2 and the chroot function. As stated in
> the manual, it is difficult to stop Apache when chrooted because it
> cannot find its PID file.
Where did you read that? If so, your Apache must behave radically =
different from mine. My Apache (1.32.29) first creates its PID file, and =
only *then* chroots. It can easily be stopped with:
kill -TERM `cat /var/run/httpd.pid`
If people have a pid within the chroot, a simple symlink, in /var/run/, =
will suffice:
ln -s /chroot/apache/var/run/httpd.pid httpd.pid
Cheers,
- Mark
System Administrator Asarian-host.org
---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx
|