-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[systemd] apply sysconfig settings on launch too. #3489
Conversation
238f842
to
12e0f09
Compare
packaging/start_agent.sh
Outdated
@@ -5,4 +5,9 @@ | |||
|
|||
PATH=/opt/datadog-agent/embedded/bin:/opt/datadog-agent/bin:$PATH | |||
|
|||
if [ "$DATADOG_ENABLED" = "no" ]; then | |||
echo "Disabled via $AGENTSYSCONFIG. Exiting." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$AGENTSYSCONFIG
doesn't exist here, I'll update the PR
@truthbk This seems to work well but the way systemd logs what our script echoes is a bit weird when This is what systemd logs once
whereas
I think this is related to the Not sure this is a blocker, I'm concerned this may make things harder to understand and debug by users. Let me know what you think though, and feel free to merge if you think this is OK. |
The error: |
Going to go ahead and merge this, we can fix the slightly misleading log entry later. |
What does this PR do?
Honor sysconfig settings when launching with systemd service.
Motivation
Not working in the mentioned scenario: #3301