Forum: CFEngine Help Subject: Re: inserting lines into crontab Author: mikesphar Link to topic: https://cfengine.com/forum/read.php?3,23442,23445#msg-23445
I know this isn't exactly what you asked about, but I would *strongly* encourage people to consider using /etc/cron.d (assuming one's OS supports it) for a lot of things like this. So say for a DB server cfengine drops in /etc/cron.d/dbmaint and for a web server it drops /etc/cron.d/webmaint, etc. With that, it's a simple matter of having cfengine copy individual files into (or remove files from) /etc/cron.d for each cfengine-managed job, and you get out of the business of managing potentially conflicting edits to a single file. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine