apache2 charm uses service reload which fails if apache2 is stopped

Bug #1559200 reported by Brian Murray
8
This bug affects 1 person
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-relation-changed ERROR: Conf syslog does not exist!
2016-03-15 21:49:05 INFO balancer-relation-changed ERROR: Conf other-vhosts-access-log does not exist!
2016-03-15 21:49:05 INFO balancer-relation-changed Syntax OK
2016-03-15 21:49:05 INFO balancer-relation-changed * Reloading web server apache2
2016-03-15 21:49:05 INFO balancer-relation-changed *
2016-03-15 21:49:05 INFO balancer-relation-changed * Apache2 is not running

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@juju-mojo-howto-machine-2:~$ sudo service apache2 stop
 * Stopping web server apache2
 *
ubuntu@juju-mojo-howto-machine-2:~$ sudo service apache2 reload
 * Reloading web server apache2
 *
 * Apache2 is not running

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.