Skip to content

Commit 7541c21

Browse files
chore: scoutapm shutdown fix (ietf-tools#7538)
1 parent 4e6abcb commit 7541c21

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

k8s/celery.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ spec:
2626
- name: scoutapm
2727
image: "scoutapp/scoutapm:version-1.4.0"
2828
imagePullPolicy: IfNotPresent
29+
# Replace command with one that will shut down on a TERM signal
30+
# The ./core-agent start command line is from the scoutapm docker image
31+
command:
32+
- "sh"
33+
- "-c"
34+
- >-
35+
trap './core-agent shutdown --tcp 0.0.0.0:6590' TERM;
36+
./core-agent start --daemonize false --log-level debug --tcp 0.0.0.0:6590 &
37+
wait $!
2938
livenessProbe:
3039
exec:
3140
command:

k8s/datatracker.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ spec:
2424
- name: scoutapm
2525
image: "scoutapp/scoutapm:version-1.4.0"
2626
imagePullPolicy: IfNotPresent
27+
# Replace command with one that will shut down on a TERM signal
28+
# The ./core-agent start command line is from the scoutapm docker image
29+
command:
30+
- "sh"
31+
- "-c"
32+
- >-
33+
trap './core-agent shutdown --tcp 0.0.0.0:6590' TERM;
34+
./core-agent start --daemonize false --log-level debug --tcp 0.0.0.0:6590 &
35+
wait $!
2736
livenessProbe:
2837
exec:
2938
command:

0 commit comments

Comments
 (0)