From 0a47d1408bb818f843f3809ca53babe307094da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 17 Nov 2011 09:04:51 +0200 Subject: [PATCH] Fixed "service: not found" error from puppet-check. --- puppet/files/puppet-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/puppet/files/puppet-check b/puppet/files/puppet-check index ad8646d..980cfb7 100755 --- a/puppet/files/puppet-check +++ b/puppet/files/puppet-check @@ -62,7 +62,7 @@ end err = sprintf("puppetd dead but pid file exists on host '%s', restarting\n", Socket.gethostname) Syslog.warning err -system("service puppet start > /dev/null") +system("service --help > /dev/null 2>&1 && service puppet start > /dev/null") system(puppetd) if $?.exitstatus == 127 Syslog.close