Add a condition to stop midolman
Sometimes midolman services does not run when installed. I ignore why, but this behavior can make the plugin fail when try to stop the service when it is already stopped. Add an 'onlyif' condition to execute the 'service stop' statement before removing datapaths. Change-Id: Id495b20f9afbce42f842a6c7cf37d5b0b332acfd
This commit is contained in:
parent
f4240ea142
commit
733f66a703
|
@ -4,7 +4,8 @@ $service_path = $operatingsystem ? {
|
|||
}
|
||||
|
||||
exec {'service midolman stop':
|
||||
path => $service_path
|
||||
path => $service_path,
|
||||
onlyif => 'ps aux | grep midolman | grep -v grep'
|
||||
} ->
|
||||
|
||||
exec {'/usr/bin/mm-dpctl --delete-dp ovs-system':
|
||||
|
|
Loading…
Reference in New Issue