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 committed Nov 28, 2024
1 parent 6337595 commit cb2de1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions 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
1 change: 1 addition & 0 deletions distributions/otelcol-otlp/otelcol-otlp.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
EnvironmentFile=/etc/otelcol-otlp/otelcol-otlp.conf
ExecStart=/usr/bin/otelcol-otlp $OTELCOL_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
Restart=on-failure
Type=simple
Expand Down
1 change: 1 addition & 0 deletions distributions/otelcol/otelcol.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ After=network.target
[Service]
EnvironmentFile=/etc/otelcol/otelcol.conf
ExecStart=/usr/bin/otelcol $OTELCOL_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
Restart=on-failure
Type=simple
Expand Down

0 comments on commit cb2de1f

Please sign in to comment.