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 #15532: Warning about systemd script during upgrade of rudder-agent 5.1 on centos7 #2035

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rudder-agent/SOURCES/rudder-agent-postinst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ fi

echo "$(date) - Starting rudder-agent post installation script" >> ${LOG_FILE}

# Update systemd units
/bin/systemctl daemon-reload

# if no conf and no server provided, try to use rudder
if [ ! -f /var/rudder/cfengine-community/policy_server.dat ] && [ "${CFRUDDER_SERVER}" = "" ]
then
Expand Down Expand Up @@ -64,7 +67,6 @@ then
chkconfig rudder-agent on
elif [ "${CFRUDDER_USE_SYSTEMD}" = "true" ]
then
/bin/systemctl daemon-reload
/bin/systemctl enable rudder-agent rudder-cf-execd rudder-cf-serverd
fi
fi
Expand Down