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

Install the correct service file based on systemd version #17159

Merged
merged 2 commits into from Mar 14, 2024

Conversation

tkatsoulas
Copy link
Contributor

Summary
Test Plan
Additional Information
For users: How does this change affect me?

Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
@github-actions github-actions bot added the area/packaging Packaging and operating systems support label Mar 14, 2024
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
@tkatsoulas tkatsoulas marked this pull request as ready for review March 14, 2024 11:33
@tkatsoulas tkatsoulas merged commit 9a07f50 into master Mar 14, 2024
97 of 98 checks passed
@ilyam8 ilyam8 deleted the deb-systemd branch March 14, 2024 12:13
ifeq ($(shell test $(SYSTEMD_VERSION) -ge 235 && echo "1"), 1)
SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service.v235
else
ifeq ($(shell test $(SYSTEMD_VERSION) -gt 235 && echo "1"), 1)
Copy link
Member

Choose a reason for hiding this comment

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

Probably using -le here is better because if the command fails we will install $(BUILDDIR)/system/systemd/netdata.service instead of the old one - this is the logic we use in install_systemd_service().

@netdata/agent-sre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants