From 9fa34567eb7811469ea029cc2be0dac92f7736ee Mon Sep 17 00:00:00 2001 From: James Becwar Date: Thu, 18 Jun 2015 13:03:19 -0500 Subject: [PATCH] Change the check command from "status [jobname]'" to "service [jobname] status". I was having a problem with some upstart jobs like haproxy not being found by with the status command but working with the service status version. --- check_upstart_status.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_upstart_status.pl b/check_upstart_status.pl index 9e11c2d..0194757 100755 --- a/check_upstart_status.pl +++ b/check_upstart_status.pl @@ -56,7 +56,7 @@ my $state; #Run command and get result -my $cmd = "status $jobName"; +my $cmd = "service $jobName status"; $retval = `$cmd`; #Get return code