I'm trying to implement a configuration mechanism that allows a cron configuration to deploy through SVN.
I immediately thought that what I should do is create symlinks from /etc/cron.d/ to my project's cron file (which in turn is controlled by a Version Control System), but that seems to not be working.
I found some old forum messages stating that symlinks were not supported and others saying that they are. Which is it?
Is there anything else or any other good way to achieve this?
/etc/cron.d/bobsjobpoints to a file owned by user "bob" cron will fail with a syslog messageWRONG FILE OWNER (/etc/cron.d/bobsjob). – Craig Ringer Nov 16 '12 at 02:43sudo -u www-data crontab -eand add it to the www-data user's crontab. It'll then run as userwww-data. Remember to remove the explicit user column, since it doesn't exist in user crontabs. – Craig Ringer Jan 11 '14 at 03:13etc/cron.? I was under the impression crontab tool would place the task somewhere else. – CMCDragonkai Jan 11 '14 at 10:26crontab -eis not what you want in this case. I'm looking but haven't found a way to run a user crontab as a non-root user. – ACK_stoverflow Oct 03 '16 at 15:32