From b1bba0984acf03b0bac6361ac0cdcf663a234e93 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Fri, 24 Jul 2020 19:24:34 +0000 Subject: [PATCH] Service returns the correct status to puppet --- manifests/apacheds.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/apacheds.pp b/manifests/apacheds.pp index aeed268..65e7591 100644 --- a/manifests/apacheds.pp +++ b/manifests/apacheds.pp @@ -86,7 +86,7 @@ define plnxtools::apacheds::instance( service {"apacheds_${title}": start => "$bin_dir/apacheds.sh $title start", stop => "$bin_dir/apacheds.sh $title stop", - status => "/bin/false", + status => "$bin_dir/apacheds.sh $title status | grep 'is running'", ensure => running } }