Hi Chris,

For me, this is a task you want to give to systemd or supervisord.

If you still want to do this manually, twistd sets a .pid file in the
working directory.
On linux, you can just use something like test -d /proc/`cat twistd.pid`


On Fri, Mar 31, 2017 at 4:30 PM Chris Spencer <[email protected]> wrote:

> How do you check programmatically to see if a worker is running?
>
> 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
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to