Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

"/etc/init.d/td-agent stop" fails stoping the daemon #13

Merged
merged 1 commit into from
Jan 28, 2013
Merged

"/etc/init.d/td-agent stop" fails stoping the daemon #13

merged 1 commit into from
Jan 28, 2013

Conversation

k24d
Copy link

@k24d k24d commented Jan 28, 2013

I'm using td-agent 1.1.11-1 on Ubuntu Server 10.04.

"/etc/init.d/td-agent stop" often fails after a long time:

$ time sudo /etc/init.d/td-agent stop
 * Stopping td-agent td-agent                                       [fail]

real    0m35.053s
user    0m0.320s
sys 0m0.140s

This patch fixes the issue because the process name of td-agent is actually "ruby", not "td-agent".

−n, −−name process-name
Check for processes with the name process-name (according to /proc/pid/stat).

@kzk
Copy link
Member

kzk commented Jan 28, 2013

Thanks, will review shortly! 👍

kzk added a commit that referenced this pull request Jan 28, 2013
"/etc/init.d/td-agent stop" fails stoping the daemon
@kzk kzk merged commit fba6478 into treasure-data:master Jan 28, 2013
@kzk
Copy link
Member

kzk commented Jan 28, 2013

confirmed this is working both on Lucid and Precise. Thanks for your pull request!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants