Fixed puppet-check cron job output
Using exec doesn't flush stdout properly, use system instead.
This commit is contained in:
parent
749e5013b8
commit
b4148531fe
1 changed files with 2 additions and 5 deletions
|
@ -41,8 +41,5 @@ end
|
|||
# restart
|
||||
printf("puppetd dead but pid file exists on host '%s', restarting\n",
|
||||
Socket.gethostname)
|
||||
begin
|
||||
exec("service puppet start")
|
||||
rescue Errno::ENOENT
|
||||
exec(puppetd)
|
||||
end
|
||||
system("service puppet start")
|
||||
system(puppetd) if $?.exitstatus == 127
|
||||
|
|
Loading…
Add table
Reference in a new issue