Here's what I did on Debian Jessie:
- install cron via
apt-get install cron
- put a
backup_crontab
file in/etc/cron.d/
However the task is never running.
Here are some outputs:
/# crontab -l
no crontab for root
/# cd /etc/cron.d && ls
backup_crontab
/etc/cron.d# cat backup_crontab
0,15,30,45 * * * * /backup.sh >/dev/null 2>&1
Is there something to do to activate a particular crontab, or to activate the cron "service" in itself?
ls /etc/cron.d
is equivalent tocd /etc/cron.d && ls
in terms of output. The only difference is the working directory won't change.