Project

General

Profile

Actions

Bug #3624

closed

/etc/crontab duplicate entries on debian

Added by Fabrice FLORE-THÉBAULT over 11 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Migrating from rudder-agent 2.4.4-squeeze0 (using .../rudder-agent_2.4.5-squeeze0_amd64.deb), i found duplicate /etc/crontab entries for rudder-agent on several hosts, like such:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * root if [ ! -e /opt/rudder/etc/disable-agent -a `ps -efww | grep -E "(cf-execd|cf-agent)" | grep -E "/var/rudder/cfengine-community/bin/(cf-execd|cf-agent)" | grep -v grep | wc -l` -eq 0 ]; then /var/rudder/cfengine-community/bin/cf-agent -f failsafe.cf \&\& /var/rudder/cfengine-community/bin/cf-agent; fi
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root if [ ! -e /opt/rudder/etc/disable-agent -a `ps -efww | grep -E "(cf-execd|cf-agent)" | grep -E "/var/rudder/cfengine-community/bin/(cf-execd|cf-agent)" | grep -v grep | wc -l` -eq 0 ]; then /var/rudder/cfengine-community/bin/cf-agent -f failsafe.cf && /var/rudder/cfengine-community/bin/cf-agent; fi

The && vs. \&\& seems to be the only difference.


Related issues 1 (0 open1 closed)

Is duplicate of Rudder - Bug #3894: Rudder cron file repot error caused by "\&\&" at installation of rudder-agentReleasedJonathan CLARKE2013-08-29Actions
Actions

Also available in: Atom PDF