Skip to content

Commit

Permalink
Update otelcol-contrib.service
Browse files Browse the repository at this point in the history
Add ExecReload command to reload configs without restarting the opentelemetry process (to prevent data loss)
  • Loading branch information
KieranP authored Nov 24, 2024
1 parent 6337595 commit dc36398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions distributions/otelcol-contrib/otelcol-contrib.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
EnvironmentFile=/etc/otelcol-contrib/otelcol-contrib.conf
ExecStart=/usr/bin/otelcol-contrib $OTELCOL_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
Restart=on-failure
Type=simple
Expand Down

0 comments on commit dc36398

Please sign in to comment.