Skip to content

Commit 5cd1d5a

Browse files
committed
Merge pull request #105 from EvanKrall/launchd_usergroup
Respect user and group in launchd.
2 parents 5b0d418 + af8ed07 commit 5cd1d5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/consul.launchd.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<plist version="1.0">
44
<dict>
55
<key>Label</key> <string>io.consul.daemon</string>
6+
<key>UserName</key> <string><%= scope.lookupvar('consul::user') %></string>
7+
<key>GroupName</key> <string><%= scope.lookupvar('consul::group') %></string>
68
<% if scope.lookupvar('consul::service_enable') %>
79
<key>Disabled</key> <false/>
810
<% else %>

0 commit comments

Comments
 (0)