Skip to content

Commit

Permalink
Merge pull request #8 from k0sproject/openrc_templ_bugfix
Browse files Browse the repository at this point in the history
fix a bugfix in command_args for openrc
  • Loading branch information
trawler authored Dec 10, 2020
2 parents 494696e + 423576c commit fd641b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions service_openrc_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,13 @@ supervisor=supervise-daemon
name="{{.DisplayName}}"
description="{{.Description}}"
command={{.Path|cmdEscape}}
command_args={{range .Arguments}}{{.}}{{end}}
{{- if .Arguments }}
command_args="{{range .Arguments}}{{.}} {{end}}"
{{- end }}
name=$(basename $(readlink -f $command))
supervise_daemon_args="--stdout /var/log/${name}.log --stderr /var/log/${name}.err"
{{ if .Dependencies }}
{{- if .Dependencies }}
depend() {
{{- range $i, $dep := .Dependencies}}
{{"\t"}}{{$dep}}{{end}}
Expand Down

0 comments on commit fd641b5

Please sign in to comment.