File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,9 @@ if command -v systemctl >/dev/null 2>&1; then
77 if [ -d /run/systemd/system ]; then
88 systemctl daemon-reload
99 fi
10+ if [ -f /etc/otelcol-contrib/config.yaml ]; then
11+ if [ -d /run/systemd/system ]; then
12+ systemctl try-restart otelcol-contrib.service
13+ fi
14+ fi
1015fi
Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ if command -v systemctl >/dev/null 2>&1; then
77 if [ -d /run/systemd/system ]; then
88 systemctl daemon-reload
99 fi
10- if [ ! -f /etc/otelcol-otlp/config.yaml ]; then
10+ if [ -f /etc/otelcol-otlp/config.yaml ]; then
11+ if [ -d /run/systemd/system ]; then
12+ systemctl try-restart otelcol-otlp.service
13+ fi
14+ else
1115 echo " Make sure to configure otelcol-otlp by creating /etc/otelcol-otlp/config.yaml"
1216 fi
1317fi
Original file line number Diff line number Diff line change @@ -7,4 +7,9 @@ if command -v systemctl >/dev/null 2>&1; then
77 if [ -d /run/systemd/system ]; then
88 systemctl daemon-reload
99 fi
10+ if [ -f /etc/otelcol/config.yaml ]; then
11+ if [ -d /run/systemd/system ]; then
12+ systemctl try-restart otelcol.service
13+ fi
14+ fi
1015fi
You can’t perform that action at this time.
0 commit comments