From 58e40a0bfadc7410b8e13e421998599f5214d812 Mon Sep 17 00:00:00 2001 From: Justin McCarthy Date: Fri, 19 Aug 2016 15:45:40 -0700 Subject: [PATCH] conditionally set service to run as .UserName variable --- service_upstart_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_upstart_linux.go b/service_upstart_linux.go index 2adeea8..04120a4 100644 --- a/service_upstart_linux.go +++ b/service_upstart_linux.go @@ -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