conditionally set service to run as .UserName variable

This commit is contained in:
Justin McCarthy
2016-08-19 15:45:40 -07:00
parent 5e33559005
commit 58e40a0bfa
+1 -1
View File
@@ -155,7 +155,7 @@ kill signal INT
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
#setuid username
{{if .UserName}}setuid {{.UserName}}{{end}}
respawn
respawn limit 10 5