Skip to content
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

Fixes #14602: Agent stderr shows up in /var/log/apache2/error.log #1846

Conversation

ncharles
Copy link
Member

@ncharles ncharles commented Apr 8, 2019

@@ -23,7 +23,7 @@

NEXTHOP = None
REMOTE_RUN_COMMAND = "sudo /opt/rudder/bin/rudder remote run"
LOCAL_RUN_COMMAND = "sudo /opt/rudder/bin/rudder agent run"
LOCAL_RUN_COMMAND = "sudo /opt/rudder/bin/rudder agent run &> /dev/null"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&> is not available in all shell, and we should use > /dev/nul 2>&1 instead ... But maybe &> is available everywhere ? because it seems better to me ...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rudder server & relay should have bash, but i indeed don't know how to force using bash

@ncharles ncharles force-pushed the bug_14602/agent_stderr_shows_up_in_var_log_apache2_error_log branch from 0e2b4bd to 98fd3a2 Compare April 9, 2019 15:29
@ncharles
Copy link
Member Author

ncharles commented Apr 9, 2019

Commit modified

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 98fd3a2 into Normation:branches/rudder/5.0 Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants