Bug #3146
closedremove : crontab not clean
Description
after my "apt-get remove rudder-agent && dpkg --purge rudder-agent", I have kill the cfengine process but after 5 minutes its come back !
The /etc/crontab have this line :
0,5,10,15,20,25,30,35,40,45,50,55 * * * * root if [ `ps -efww | grep cf-execd | grep "/var/rudder/cfengine-community/bin/cf-execd" | grep -v grep | wc -l` -eq 0 ]; then /var/rudder/cfengine-community/bin/cf-execd; fi
Updated by François ARMAND almost 12 years ago
- Status changed from New to 8
- Assignee set to Matthieu CERDA
- Priority changed from N/A to 3
- Target version set to 2.3.10
Updated by Jonathan CLARKE almost 12 years ago
- Priority changed from 3 to 1 (highest)
- Target version changed from 2.3.10 to 2.5.0~rc1
Matthieu, can you work on a change for this for 2.5 please? This is too impacting to change in 2.3 or 2.4 (stable versions), but can make it into 2.5.
Updated by Francois BAYART almost 12 years ago
same remark with :
- /etc/apt/apt.conf.d/99rudder
- /etc/rsyslog.d/rudder-agent.conf
Updated by Jonathan CLARKE almost 12 years ago
- Create this file in the system Technique common (the plain cron file to be copied as is)
- Edit the system Technique common to copy this file to /etc/cron.d/rudder-agent
- Edit the system Technique common to delete_lines the old line from /etc/crontab
- Edit the packaging of rudder-agent so that SOURCES/Makefile copies the rudder-agent cron file from the rudder-techniques repo
- Adapt the packaging (deb and RPM) to copy this file into place on install, and clear it up on package purge
Updated by Matthieu CERDA almost 12 years ago
- Status changed from 8 to In progress
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
The first part has been done: a Technique update that puts the Rudder cron configuration in cron.d instead of crontab.
There is still the packaging work to do.
A little word of caution, in the Technique, I used the local_cp body (defined in the stdlib), we might want to use another one as I suspect that it uses the mtime file comparison method by default. (Should not harm, but might cause some funny things if the user alters the file on the destination machine...)
Jon, you turn :)
Updated by François ARMAND almost 12 years ago
- Status changed from In progress to Pending technical review
Updated by François ARMAND almost 12 years ago
- Status changed from Pending technical review to Pending release
Updated by Nicolas PERRON almost 12 years ago
- Project changed from Rudder to 34
- Category deleted (
11)
Updated by François ARMAND over 11 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE almost 10 years ago
- Project changed from 34 to Rudder
- Category set to Packaging