OSDN Git Service

[gitlab:check] Fix detecting the status of sidekiq
authorJohannes Schleifenbaum <johannes@js-webcoding.de>
Thu, 26 Sep 2013 13:40:44 +0000 (15:40 +0200)
committerJohannes Schleifenbaum <johannes@js-webcoding.de>
Fri, 27 Sep 2013 14:06:06 +0000 (16:06 +0200)
commitb5d7bcb7842d7a63de332e998d2c11ba3a5e1e6d
tree509f6af30dbc92ba3463f516a086680f7b2b46a6
parent72dd8011a739356ee66d90a0bb3adcb865495464
[gitlab:check] Fix detecting the status of sidekiq

If you are running another sidekiq instance on your server, e.g. GitLab
CI, the check script would parse the output of `ps aux` searching for
`sidekiq` and returning success, although the GitLab sidekiq may not be
running.

Now the `ps` call will only print the processes run by the GitLab user.
lib/tasks/gitlab/check.rake