Show only processes owned by the GitLab user on the Admin-Sidekiq page

See the Pull-Request #5191
This commit is contained in:
Johannes Schleifenbaum
2013-10-16 09:01:31 +02:00
parent 253850dd6d
commit 5b0abbcbc3
@@ -3,7 +3,7 @@
.ui-box
%iframe{src: sidekiq_path, width: '100%', height: 900, style: "border: none"}
%h4 Sidekiq running processes
- sidekiq_processes = `ps -eo euser,pid,pcpu,pmem,stat,start,command | grep sidekiq | grep -v grep`
- sidekiq_processes = `ps -U #{Settings.gitlab.user} -o euser,pid,pcpu,pmem,stat,start,command | grep sidekiq | grep -v grep`
- if sidekiq_processes.empty?
%b There are no running sidekiq processes
%b Please restart GitLab