Project

General

Profile

Actions

Bug #3654

closed

Rudder cron file contains error until the use of CFEngine and will display error into /var/mail for root

Added by Dennis Cabooter about 11 years ago. Updated over 9 years ago.

Status:
Released
Priority:
2
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

The following cron sometimes causes errors on some nodes:

Cron <root@node> if [ ! -e ${g.rudder_base}/etc/disable-agent -a `ps -efww | grep -E "(cf-execd|cf-agent)" | grep -E "${sys.workdir}/bin/(cf-execd|cf-agent)" | grep -v grep | wc -l` -eq 0 ]; then ${sys.workdir}/bin/cf-agent -f failsafe.cf \&\& ${sys.workdir}/bin/cf-agent; fi

The error is as follows:

/bin/sh: ${g.rudder_base}/etc/disable-agent: bad substitution

Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #3600: On a new installation of Rudder, the user root got mail containing error about execution of cronRejected2013-05-17Actions
Actions

Also available in: Atom PDF