Fix macOS service installation launch template

The current version of cloudflared (2021.3.2 at time of commit)
requires additional arguments to start a tunnel. Running 'cloudflared'
on its own does not run a tunnel with the default configuration.

This is behavior that has changed from previous versions of cloudflared,
where no arguments were required for starting/running a tunnel with the
default configuration behavior.
This commit is contained in:
Allen Ding 2021-03-26 17:00:27 +08:00
parent e9167f7f58
commit b82a881f09
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ func newLaunchdTemplate(installPath, stdoutPath, stderrPath string) *ServiceTemp
<key>ProgramArguments</key> <key>ProgramArguments</key>
<array> <array>
<string>{{ .Path }}</string> <string>{{ .Path }}</string>
<string>tunnel</string>
<string>run</string>
</array> </array>
<key>RunAtLoad</key> <key>RunAtLoad</key>
<true/> <true/>