Skip to content

Commit 8fb4f56

Browse files
committed
Fixed exe path
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 71f9966 commit 8fb4f56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/daemon.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ func startDaemon() {
2525
}
2626
}
2727
if start {
28-
c := exec.Command("tunnel", "daemon")
28+
e, err := os.Executable()
29+
if err != nil {
30+
log.Fatal(err)
31+
}
32+
c := exec.Command(e, "daemon")
2933
c.SysProcAttr = &syscall.SysProcAttr{
3034
Setpgid: true,
3135
Pgid: 0,

0 commit comments

Comments
 (0)