[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: replace 'ps fax|grep -v grep|grep foo|wc -l' with 'pgrep -fc foo'

Holger Levsen holger at moszumanska.debian.org
Mon Oct 5 12:30:17 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 71289f0d74a4fb04e64487bfecd9d9de58a7f8bc
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Oct 5 14:29:08 2015 +0200

    reproducible: replace 'ps fax|grep -v grep|grep foo|wc -l' with 'pgrep -fc foo'
---
 hosts/jenkins/etc/munin/plugins/jenkins_builds_running | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hosts/jenkins/etc/munin/plugins/jenkins_builds_running b/hosts/jenkins/etc/munin/plugins/jenkins_builds_running
index 24084f1..19e1752 100755
--- a/hosts/jenkins/etc/munin/plugins/jenkins_builds_running
+++ b/hosts/jenkins/etc/munin/plugins/jenkins_builds_running
@@ -40,4 +40,4 @@ if [ "$1" = "config" ]; then
 	exit 0
 fi
 
-echo "jenkins_builds_running.value $(ps fax|grep /tmp/hudson|grep -v grep|wc -l)"
+echo "jenkins_builds_running.value $(pgrep -fc /tmp/hudson)"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list