Crontab question (Solved: remember to start cron)

I'm trying to execute two commands to shutdown samba and minidlna everynight at 3:05am and 3:10am, but it doesn't appear to be working. I keep looking online to see what I might be doing wrong, but can't nail it down. Can someone take a look at my scheduled tasks please?

5 3 * * * /etc/init.d/minidlna stop
10 3 * * * /etc/init.d/samba stop
#shutting down the minidlna server and Samba Share
1 Like

Have you started the cron itself?

root@LEDE:~# ps | grep cron
 6990 root      1044 S    grep cron

root@LEDE:~# /etc/init.d/cron start

root@LEDE:~# ps | grep cron
 7008 root      1044 S    /usr/sbin/crond -f -c /etc/crontabs -l 5
 7012 root      1044 S    grep cron

( If there is no crontab defined (i.e. /etc/crontabs/ is empty), then cron won't start. Make sure you already defined cron jobs before trying to start cron )


Oh geez... :flushed: Yup, that's it. Thanks @hnyman!