Init script claims another apache is running when it's not
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
root@maas:~# grep PID /etc/apache2/
export APACHE_
root@maas:~# ls -la /var/run/apache2/
total 0
drwxr-xr-x 2 root root 40 Aug 28 13:22 .
drwxr-xr-x 31 root root 1040 Aug 28 13:23 ..
root@maas:~# service apache2 restart
* Restarting web server apache2 [fail]
* There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety, Please review the situation by hand.
root@maas:~# ps -fe|grep apache2
root 10594 6834 0 13:26 pts/1 00:00:00 grep --color=auto apache2
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apache2 2.4.7-1ubuntu4.1
ProcVersionSign
Uname: Linux 3.13.0-34-generic x86_64
Apache2ConfdDir
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
Date: Thu Aug 28 13:27:34 2014
SourcePackage: apache2
UpgradeStatus: Upgraded to trusty on 2014-01-31 (209 days ago)
Hi Julian,
The logic is in /etc/init.d/apache2 from around line 198. What does "pidof /usr/sbin/apache2" give you please, and what is its exit status? If it does provide some pids, then what does ps report against them? And what files and what contents are in /var/run/apache2/?