Skip to content

Commit ced664e

Browse files
Merge pull request mattfinlayson#193 from vincepii/master
Add BIND capabilities for consul on systemd
2 parents 4fd976c + d76f877 commit ced664e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/consul.systemd.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Environment="GOMAXPROCS=`nproc`"
88
Restart=on-failure
99
User={{ consul_user }}
1010
Group={{ consul_group }}
11+
PermissionsStartOnly=true
12+
ExecStartPre=/sbin/setcap CAP_NET_BIND_SERVICE=+eip {{ consul_home }}/bin/consul
1113
ExecStart={{ consul_home }}/bin/consul agent -config-dir {{ consul_config_dir }} -config-file={{ consul_config_file }}
1214
ExecReload=/bin/kill -HUP $MAINPID
1315
KillSignal=SIGINT

0 commit comments

Comments
 (0)