cloudflared/linux_service: Add missing /etc/init.d shebang

When using sysv init scripts, `cloudflared` fails to start due to the
missing shebang interpreter line.

This patch adds the missing shebang.
This commit is contained in:
Philippe Grégoire 2019-01-30 16:10:47 -05:00 committed by Silver
parent 6a331b13ba
commit 10e4a2940c
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ WantedBy=timers.target
var sysvTemplate = ServiceTemplate{
Path: "/etc/init.d/cloudflared",
FileMode: 0755,
Content: `# For RedHat and cousins:
Content: `#!/bin/sh
# For RedHat and cousins:
# chkconfig: 2345 99 01
# description: Argo Tunnel agent
# processname: {{.Path}}