Comment 5 for bug 1043588

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1043588] Re: sudo restart lxc-net does not kill/restart dnsmasq

This happens because 'restart service' does not cause service's post-stop
to be executed. Only it's pre-stop is executed.

Note that if you want to stop the dnsmasq, you can work around this by
doing

stop lxc-net; start lxc-net

The pre-start also would not be executed on a restart, so just changing
the post-stop would not suffice. We'd have to change the pre-start to
'script'.

I'm not sure whether there is any downside to doing so.

 status: confirmed
 importance: medium