I installed Ubuntu for Windows 10 yesterday and set up a cronjob. It runs fine after starting the cron service, but every time I restart my PC it the cron service is deactivated and I have to activate it manually again.
So after some investigating I found that with update-rc.d
I can add cron to auto-start services. I ran that command and checked that I have the appropriate S01cron links in the runlevel directories rc2 through rc5. Having said this, it still does not work.
I wonder if this is because when I start the cron service with sudo service cron start
I have to provide my password, which I do not when adding it to the auto-start queue? Can I somehow exempt cron from password requirements?