Hello,
Today I discovered an odd problem on one of my servers. After reboot, Apache is started twice:
This causes twice the normal amount of httpd processes to be started.
Anyone have any idea how to fix this so that Apache is only started once after a reboot?
---
What I have tried so far:
Setting
in /etc/rc.conf causes apache not to start at all (as expected).
/usr/local/etc/apache22/httpd.conf is the exact same as on a few other servers that don't have this problem.
I also tried to recompile apache and all its dependencies, but that didn't help.
/var/log/messages shows nothing related to this.
---
---
---
Help on this would be greatly appreaciated!
Today I discovered an odd problem on one of my servers. After reboot, Apache is started twice:
Code:
# tail /var/log/httpd/httpd-error.log
[Tue Jul 13 07:02:19 2010] [notice] caught SIGTERM, shutting down
[Tue Jul 13 07:02:28 2010] [notice] caught SIGTERM, shutting down
[Tue Jul 13 07:05:04 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 13 07:05:04 2010] [notice] Digest: done
[Tue Jul 13 07:05:05 2010] [notice] Apache/2.2.15 (FreeBSD) DAV/2 PHP/5.2.13 with Suhosin-Patch configured -- resuming normal operations
[Tue Jul 13 07:05:06 2010] [notice] Digest: generating secret for digest authentication ...
[Tue Jul 13 07:05:06 2010] [notice] Digest: done
[Tue Jul 13 07:05:07 2010] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Jul 13 07:05:07 2010] [notice] Apache/2.2.15 (FreeBSD) DAV/2 PHP/5.2.13 with Suhosin-Patch configured -- resuming normal operations
apachectl stop will only stop the processes started in the last round, so I need to use [cmd=]killall httpd[/cmd] and then [cmd=]apachectl start[/cmd] for a normal amount of processes to be started.Anyone have any idea how to fix this so that Apache is only started once after a reboot?
---
What I have tried so far:
Setting
Code:
apache22_enable="NO"
/usr/local/etc/apache22/httpd.conf is the exact same as on a few other servers that don't have this problem.
I also tried to recompile apache and all its dependencies, but that didn't help.
/var/log/messages shows nothing related to this.
---
Code:
# pkg_info -rx apache
Information for apache-2.2.15_9:
Depends on:
Dependency: expat-2.0.1_1
Dependency: perl-5.10.1_1
Dependency: pcre-8.02
Dependency: gdbm-1.8.3_3
Dependency: db42-4.2.52_5
Dependency: libiconv-1.13.1_1
Dependency: apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.9_1
Code:
# uname -v
FreeBSD 7.3-RELEASE-p2 #0: Mon Jul 12 19:23:19 UTC 2010 [email]root@amd64-
builder.daemonology.net[/email]:/usr/obj/usr/src/sys/GENERIC
---
Help on this would be greatly appreaciated!