Skip to content

Commit

Permalink
Merge pull request #30 from intergral/linux-enable-service
Browse files Browse the repository at this point in the history
Enable Linux service so it starts on boot
  • Loading branch information
ibalal-intergral authored Feb 12, 2024
2 parents 07244d0 + f082bac commit a0a9d1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions linux/observability-agent-autoconf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,8 @@ if [ "${asBinary}" = true ]; then
elif [ "$PROMPT" != false ] || [ "${start_service}" = true ]; then
mv $CONFIG /etc/grafana-agent-flow.river
echo "Config file can be found at /etc/grafana-agent-flow.river"
systemctl enable grafana-agent-flow.service
echo "Grafana Agent Flow enabled"
systemctl start grafana-agent-flow.service
echo "Grafana Agent Flow started"
fi

0 comments on commit a0a9d1f

Please sign in to comment.