Skip to content

Commit

Permalink
Merge pull request #105 from EvanKrall/launchd_usergroup
Browse files Browse the repository at this point in the history
Respect user and group in launchd.
  • Loading branch information
solarkennedy committed Apr 12, 2015
2 parents 5b0d418 + af8ed07 commit 5cd1d5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/consul.launchd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<plist version="1.0">
<dict>
<key>Label</key> <string>io.consul.daemon</string>
<key>UserName</key> <string><%= scope.lookupvar('consul::user') %></string>
<key>GroupName</key> <string><%= scope.lookupvar('consul::group') %></string>
<% if scope.lookupvar('consul::service_enable') %>
<key>Disabled</key> <false/>
<% else %>
Expand Down

0 comments on commit 5cd1d5a

Please sign in to comment.