apache2 charm uses service reload which fails if apache2 is stopped
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juju Charms Collection |
New
|
Undecided
|
Unassigned |
Bug Description
I was setting some apache2 servers in canonistack and regularly have seen the apache2 service not started on it. Looking at my juju unit log I found the following:
2016-03-15 21:49:05 INFO balancer-
2016-03-15 21:49:05 INFO balancer-
2016-03-15 21:49:05 INFO balancer-
2016-03-15 21:49:05 INFO balancer-
2016-03-15 21:49:05 INFO balancer-
2016-03-15 21:49:05 INFO balancer-
Using sudo service apache2 start just worked, so everything is okay. I think it's actually a bug in the charm as service apache2 reload doesn't work if apache2 is stopped e.g.:
ubuntu@
* Stopping web server apache2
*
ubuntu@
* Reloading web server apache2
*
* Apache2 is not running