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.
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