Skip to content

Commit 7942c68

Browse files
committed
fix: gracefully shutdown Kong on service stop
`kong quit` is already used within `start-kong.sh` for the all-in-one image. The sole purpose of `start-kong.sh` is to trap exit to run `kong quit`, perhaps `stopsignal=QUIT` in the supervisord config would be equivalent, but it ain't broke.
1 parent 6718da8 commit 7942c68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ansible/files/kong_config/kong.service.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ Conflicts=envoy.service
88
Type=forking
99
ExecStart=/usr/local/bin/kong start -c /etc/kong/kong.conf
1010
ExecReload=/usr/local/bin/kong reload -c /etc/kong/kong.conf
11-
ExecStop=/usr/local/bin/kong stop
11+
ExecStop=/usr/local/bin/kong quit
1212
User=kong
1313
EnvironmentFile=/etc/kong/kong.env
1414
Slice=services.slice
1515
Restart=always
1616
RestartSec=3
1717
LimitNOFILE=100000
1818

19-
# The kong user is unpriviledged and thus not permited to bind on ports < 1024
20-
# Via systemd we grant the process a set of priviledges to bind to 80/443
19+
# The kong user is unprivileged and thus not permitted to bind on ports < 1024
20+
# Via systemd we grant the process a set of privileges to bind to 80/443
2121
# See http://archive.vn/36zJU
2222
AmbientCapabilities=CAP_NET_BIND_SERVICE
2323

0 commit comments

Comments
 (0)