Skip to content

Commit

Permalink
Fix systemd unit file for otelcol (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling authored Dec 8, 2021
1 parent 24a0eee commit 4464f3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions distributions/otelcol/otelcol.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Systemd environment file for the opentelemetry-collector service
# Systemd environment file for the otelcol service

# Command-line options for the opentelemetry-collector service.
# Run `/usr/bin/opentelemetry-collector --help` to see all available options.
OTELCOL_OPTIONS="--config=/etc/opentelemetry-collector/config.yaml"
# Command-line options for the otelcol service.
# Run `/usr/bin/otelcol --help` to see all available options.
OTELCOL_OPTIONS="--config=/etc/otelcol/config.yaml"
2 changes: 1 addition & 1 deletion distributions/otelcol/otelcol.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=OpenTelemetry Collector
After=network.target

[Service]
EnvironmentFile=/etc/opentelemetry-collector/otelcol.conf
EnvironmentFile=/etc/otelcol/otelcol.conf
ExecStart=/usr/local/bin/otelcol $OTELCOL_OPTIONS
KillMode=mixed
Restart=on-failure
Expand Down

0 comments on commit 4464f3e

Please sign in to comment.