From 7d3257b222cf6a7d28a053e45d4d6b503ef5150c Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 20 Jul 2015 15:05:15 +0200 Subject: [PATCH] Use soft shutdown when running tests --- internal/rc/rc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rc/rc.go b/internal/rc/rc.go index 0b03d39a..74c1a188 100644 --- a/internal/rc/rc.go +++ b/internal/rc/rc.go @@ -129,7 +129,7 @@ func (p *Process) Stop() (*os.ProcessState, error) { p.stop = true p.eventMut.Unlock() - if err := p.cmd.Process.Signal(os.Kill); err != nil { + if _, err := p.Post("/rest/system/shutdown", nil); err != nil { return nil, err } p.cmd.Wait()