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

setup.py: RHEL support needed for startup service #99

Open
crashingstatic opened this issue Mar 17, 2020 · 0 comments
Open

setup.py: RHEL support needed for startup service #99

crashingstatic opened this issue Mar 17, 2020 · 0 comments

Comments

@crashingstatic
Copy link

Lines 119-120 in setup.py read:

                subprocess.Popen(
                    "update-rc.d artillery defaults", shell=True).wait()

On install for RHEL systems, setup.py stdout reads:

/bin/sh: update-rc.d: command not found

Recommendation:
Add a check to see if you're on a RHEL system, if so, then:

                subprocess.Popen(
                    "chkconfig artillery on", shell=True).wait()

Problem:
It appears that some versions of Fedora (i.e. FC-Sever 31) do not have either installed. Maybe instead of the above, create a systemd service?

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

1 participant