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

Update opentsdb_restart.py #1515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update opentsdb_restart.py #1515

wants to merge 1 commit into from

Conversation

ddoshy
Copy link

@ddoshy ddoshy commented Jan 31, 2019

Use 'systemctl' rather than 'service'

Use 'systemctl' rather than 'service'
@@ -1,7 +1,7 @@
#!/usr/bin/env python
"""Restart opentsdb. Called using -XX:OnOutOfMemoryError=<this script>

Because it's calling the 'service opentsdb' command, should be run as root.
Because it's calling the 'systemctl *action* opentsdb' command, should be run as root.
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a check to determine if an OS is running the old school init vs systemd please? We do have users on older systems.

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.

None yet

2 participants