Is there a way how to restart Apache if pid file is missing?
I use my own demon.It happened that the demon deleted /var/run/apache2.pid
file.
Then I can not use /etc/init.d/apache2 restart
but I must restart my Debian server by init 6 .
After that the Apache starts normally.
So, if the init
Others will answer this better I'm sure and I haven't used Debian in a
while but I would do:
$sudo ps ax | grep httpd
$sudo kill "lowest httpd process id goes here"
$sudo /etc/init.d/apache2 start
Or, since it looks like /var/run/httpd.pid contains only the pid of
the first (lowest number
On Wed, Aug 27, 2008 at 7:41 AM, <[EMAIL PROTECTED]> wrote:
> Is there a way how to restart Apache if pid file is missing?
> I use my own demon.It happened that the demon deleted /var/run/apache2.pid
> file.
> Then I can not use /etc/init.d/apache2 restart
>
> but I must restart my Debian ser
On Aug 27, 2008, at 6:13 AM, Bradley Giesbrecht wrote:
Others will answer this better I'm sure and I haven't used Debian in
a while but I would do:
Debian names its httpd 'apache2'.
[EMAIL PROTECTED]:~$ cat /var/run/apache2.pid
5692
[EMAIL PROTECTED]:~$ sudo rm /var/run/apache2.pid
[sudo] p
On Wed, Aug 27, 2008 at 01:41:48PM +0200, [EMAIL PROTECTED] wrote:
> Is there a way how to restart Apache if pid file is missing?
> I use my own demon.It happened that the demon deleted /var/run/apache2.pid
> file.
> Then I can not use /etc/init.d/apache2 restart
>
> but I must restart my Deb