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

scripts: systemd - Kill also telegraf MAINPID child (stop,restart,reload) #1577

Closed
wants to merge 1 commit into from

Conversation

sbadia
Copy link

@sbadia sbadia commented Aug 3, 2016

Required for all PRs:

  • CHANGELOG.md updated
  • Sign CLA (if not already signed)
  • README.md updated (if adding a new plugin)

killall binary is included in the package psmisc.
we maybe have another way to solve this issue with « standard » tools
https://stackoverflow.com/questions/392022/best-way-to-kill-all-child-processes

Refs: #1576

…oad)

killall binary is included in the package psmisc.
we maybe have another way to solve this issue with « standard » tools
https://stackoverflow.com/questions/392022/best-way-to-kill-all-child-processes

Refs: influxdata#1576
@@ -9,7 +9,8 @@ User=telegraf
Environment='STDOUT=/var/log/telegraf/telegraf.log'
Environment='STDERR=/var/log/telegraf/telegraf.log'
ExecStart=/bin/sh -c "exec /usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d ${TELEGRAF_OPTS} >>${STDOUT} 2>>${STDERR}"
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/killall telegraf

Choose a reason for hiding this comment

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

Shouldn't you depend on psmisc package ?

@sbadia
Copy link
Author

sbadia commented Aug 4, 2016

Duplicate of #1279

@sbadia sbadia closed this Aug 4, 2016
@sbadia sbadia deleted the bug/1576 branch August 4, 2016 09:00
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