Skip to content

Commit f890717

Browse files
ufootolivielpeau
authored andcommitted
[trace-agent] restart on unexpected error code
This patch restarts the trace agent if it exits with an error code that is different from 0. Else, it would restart in some cases but would consider as 'expected' the return code 2 which is what Go returns for builtin runtime errors.
1 parent 89e6aa5 commit f890717

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packaging/supervisor.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ startsecs=5
7575
startretries=3
7676
priority=998
7777
user=dd-agent
78+
autorestart=unexpected
79+
exitcodes=0
7880

7981
[group:datadog-agent]
8082
programs=forwarder,collector,dogstatsd,jmxfetch,go-metro,trace-agent

0 commit comments

Comments
 (0)