<div dir="ltr">Thanks.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 31, 2017 at 10:45 AM, Pierre Tardy <span dir="ltr"><<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Chris,<div><br></div><div>For me, this is a task you want to give to systemd or supervisord.<br></div><div><br></div><div>If you still want to do this manually, twistd sets a .pid file in the working directory.</div><div>On linux, you can just use something like test -d /proc/`cat twistd.pid`</div><div><br></div></div><br><div class="gmail_quote"><span class=""><div dir="ltr">On Fri, Mar 31, 2017 at 4:30 PM Chris Spencer <<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>> wrote:<br></div></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr" class="m_-396398476373599091gmail_msg"><div class="m_-396398476373599091gmail_msg">How do you check programmatically to see if a worker is running?<br class="m_-396398476373599091gmail_msg"><br class="m_-396398476373599091gmail_msg"></div>My worker keeps getting sigkilled, and it's unclear why, so I'd like to create a cron job to check to see if it's running, and if it's stopped, to restart buildbot. However, buildbot-worker doesn't have a `status<br class="m_-396398476373599091gmail_msg"></div></span>
______________________________<wbr>_________________<br class="m_-396398476373599091gmail_msg">
users mailing list<br class="m_-396398476373599091gmail_msg">
<a href="mailto:users@buildbot.net" class="m_-396398476373599091gmail_msg" target="_blank">users@buildbot.net</a><br class="m_-396398476373599091gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="m_-396398476373599091gmail_msg" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></blockquote></div>
</blockquote></div><br></div>