yet more cleanup

This commit is contained in:
John Bintz 2012-06-04 16:30:49 -04:00
parent dc5e8549b5
commit 1fc6f377fd
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ stop() {
fi
done
killall -9 <%= bin %> || true
pkill -9 -f <%= bin %> || true
echo "$NAME."
}

View File

@ -85,7 +85,7 @@ class varnish($version, $vcl, $user = 'varnish', $group = 'varnish', $store_file
}
init_d { $name:
require => Build_and_install[$name]
require => Mkdir_p[$dirs]
}
}

View File

@ -57,7 +57,7 @@ God.watch do |w|
w.interval = <%= interval %>.seconds
w.start = lambda { system("<%= start %>") }
w.start_grace = <% interval %>.seconds
w.start_grace = <%= interval %>.seconds
<% if !stop.empty? %>
w.stop = lambda { system("<%= stop %>") ; system("killall -9 <%= name %>") }