From 7fc9764ad2eeaaad9f1f7e410c775514ad65057d Mon Sep 17 00:00:00 2001 From: Yota Ichino Date: Sun, 4 Sep 2016 00:29:48 +0900 Subject: [PATCH] Fix failing to install a systemd service Args of struct should be specified with args. --- daemon_linux_systemd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon_linux_systemd.go b/daemon_linux_systemd.go index dc2bac0..790547e 100644 --- a/daemon_linux_systemd.go +++ b/daemon_linux_systemd.go @@ -81,16 +81,16 @@ func (linux *systemDRecord) Install(args ...string) (string, error) { return installAction + failed, err } - path := append([]string{execPatch}, args...) if err := templ.Execute( file, &struct { - Name, Description, Dependencies, Path string + Name, Description, Dependencies, Path, Args string }{ linux.name, linux.description, strings.Join(linux.dependencies, " "), - strings.Join(path, " "), + execPatch, + strings.Join(args, " "), }, ); err != nil { return installAction + failed, err