yet more cleanup
This commit is contained in:
parent
dc5e8549b5
commit
1fc6f377fd
@ -32,7 +32,7 @@ stop() {
|
||||
fi
|
||||
done
|
||||
|
||||
killall -9 <%= bin %> || true
|
||||
pkill -9 -f <%= bin %> || true
|
||||
echo "$NAME."
|
||||
}
|
||||
|
||||
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 %>") }
|
||||
|
Loading…
Reference in New Issue
Block a user