On Thu, 24 Feb 2011 16:23:58 +0100 (CET) kholloway wrote: n> In CF3 we use edit_files functions (or write your own) and either n> match the cron job exactly or use regex to match for it and then n> insert/replace. If I go look at my crontab entry I won't see any n> indication that CF3 put it there and manages it which sometimes n> results in duplicates (yes I could put a comment line in above it but n> that's even more lines of stuff to write, especially when you try to n> clean it up later).
Hi, I manage this by adding a fake environment variable, e.g. * * * * * CFCRON=1 ... rest of command ... so then you can just look for "CFCRON=1" to find the cron entries you added (and use delete_lines on them with insert_lines). That is nicely convergent and preserves comments, etc. Ted _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine