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

Newly introduced systemd detection does not work #91

Closed
bertptrs opened this issue Mar 4, 2019 · 1 comment
Closed

Newly introduced systemd detection does not work #91

bertptrs opened this issue Mar 4, 2019 · 1 comment

Comments

@bertptrs
Copy link

bertptrs commented Mar 4, 2019

In 8df0c1f the detection of systemd-based systems was changed to seeing whether the program systemd can be found. However, on most systems, this program is not actually part of systemd, at least not on ArchLinux. It now incorrectly assumes there is no init system, where there clearly is.

A more appropriate check (if you don't want to return to the old behaviour) is to do the same check for the systemctl binary. That one is unique to systemd systems (at least as far as I know) and should always be on the path.

@roehling
Copy link
Owner

roehling commented Mar 4, 2019

The old check failed on my Ubuntu 18.04 LTS system, so I implemented your suggestion. Thank you for the bug report!

jeredfloyd pushed a commit to jeredfloyd/postsrsd that referenced this issue May 4, 2022
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

No branches or pull requests

2 participants