Set signal to quit.

This commit is contained in:
Daniel Theophanes
2012-05-11 01:50:50 -07:00
parent b00f725a5d
commit 5a91d69e9a
+3 -1
View File
@@ -80,7 +80,7 @@ func (s *linuxUpstartService) Run(onStart, onStop func() error) error {
var sigChan = make(chan os.Signal, 3)
signal.Notify(sigChan, os.Kill)
signal.Notify(sigChan, os.Interrupt, os.Kill)
<-sigChan
@@ -108,6 +108,8 @@ description "{{.Display}}"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
kill signal INT
respawn
respawn limit 10 5
umask 022