From 71289f0d74a4fb04e64487bfecd9d9de58a7f8bc Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 5 Oct 2015 14:29:08 +0200 Subject: 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(-) (limited to 'hosts/jenkins/etc') diff --git a/hosts/jenkins/etc/munin/plugins/jenkins_builds_running b/hosts/jenkins/etc/munin/plugins/jenkins_builds_running index 24084f10..19e1752f 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)" -- cgit v1.2.3-70-g09d2