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

check if systemd is running before calling systemd commands #84

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

glimberg
Copy link
Contributor

@glimberg glimberg commented Aug 29, 2024

Makes installing on rpm containers that don't have systemd running possible without the script ending with a nonzero exit code.

Also adds checks for some rpm based distros, as well as linux mint in the tests

adds support for rpm based distros and linux mint in checks as well
echo
exit 1
exit 0
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If systemd isn't running, we don't want to call systemctl commands, or return an error.

@laduke
Copy link
Contributor

laduke commented Aug 29, 2024

sweeet

@glimberg glimberg merged commit c7f6866 into main Aug 29, 2024
16 checks passed
@glimberg glimberg deleted the systemd-check branch August 29, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants