Remove dependency of killall 49/17749/2
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 6 Nov 2018 11:18:53 +0000 (12:18 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 6 Nov 2018 14:43:21 +0000 (15:43 +0100)
killall utility is part of psmisc package that is not installed by
default. So use pkill utility instead.

Change-Id: Ib1e46b603560ea8ee6041a52b3c482114ec340ac
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
test/main_test.go

index ced75a6..273df09 100644 (file)
@@ -85,7 +85,7 @@ func Copy(src, dst string) error {
 func initEnv(launchProcess bool) {
        if launchProcess {
                /*kill xds-server if needed*/
-               cmd := exec.Command("killall", "-9", "xds-server")
+               cmd := exec.Command("pkill", "-9", "xds-server")
                if err := cmd.Start(); err != nil {
                        log.Fatal(err)
                }