service: for upstart use INT so go process doesn't stop before Stop handler.

This commit is contained in:
Daniel Theophanes
2015-01-13 20:33:11 -08:00
parent da8aebeaad
commit 071b50c909
2 changed files with 3 additions and 0 deletions
BIN
View File
Binary file not shown.
+3
View File
@@ -342,10 +342,13 @@ case "$1" in
esac
exit 0`
// The upstart script should stop with an INT or the Go runtime will terminate
// the program before the Stop handler can run.
const upstartScript = `# {{.Description}}
description "{{.Display}}"
kill signal INT
start on filesystem or runlevel [2345]
stop on runlevel [!2345]