I am trying to add a cron job to backup a database on my server (instance EC2 t2 micro, ubuntu 16.4 server). The script works, and the cron line should be ok:
* * * * * /home/ubuntu/backup.sh
Yet, it was not executed. So I did:
service crond status
and got:
● crond.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
when I do :
service crond start
I get:
Failed to start crond.service: Access denied
See system logs and 'systemctl status crond.service' for details.
Being very unskilled with bash things, and considering it might be related to the way Amazon EC2 ubuntu is set up, here I am. Do you know what I could do to get the crond service back up?
EDIT: well, so the service name was cron
. And it is executed every minute as it should. I guess there is an issue with my script.
service cron status