From 8e2752f4595db07197cacbf8c352e51b5268b71b Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Thu, 12 Jun 2014 10:42:38 +0200 Subject: Be more selective when killing stray Sidekiqs Avoid the background_jobs script killing every process with 'sidekiq' in its argument string (e.g. 'rake gitlab:sidekiq start') by also catching the number (2) in 'sidekiq 2.14'. --- bin/background_jobs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/background_jobs') diff --git a/bin/background_jobs b/bin/background_jobs index e0140e9689b..c7ba4398cfb 100755 --- a/bin/background_jobs +++ b/bin/background_jobs @@ -18,7 +18,7 @@ function stop function killall { - pkill -u $gitlab_user -f sidekiq + pkill -u $gitlab_user -f 'sidekiq [0-9]' } function restart -- cgit v1.2.1