Permalink
Browse files

fix broken test for for running OVS daemon

  • Loading branch information...
1 parent ccef47d commit be49bd301f6649950d9cc5bb08ee68a293d7058a @iawells iawells committed Jan 15, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 manifests/ovs.pp
View
@@ -17,8 +17,9 @@
service {"openvswitch-switch":
ensure => true,
enable => true,
- hasstatus => true,
- status => "/etc/init.d/openvswitch-switch status",
+ hasstatus => false, # the supplied command returns true even if it's not running
+ # Not perfect - should spot if either service is not running - but it'll do
+ status => "/etc/init.d/openvswitch-switch status | fgrep 'is running'",
}
Service['openvswitch-switch'] -> Vs_port<||>

0 comments on commit be49bd3

Please sign in to comment.