I had a cronjob set up to run a php script daily, which went well for about a month. Today, I realized it didn’t run the script so I opened up the crontab. The crontab is completely empty – what happened?
I don’t know too much about cronjobs, but as far as I understand, they do not delete themselves if the server is reset. How can I make sure cronjobs are always running and that it doesnt get deleted?
It is probably under a different user. Check root user
sudo crontab -e. Each user has it’s own crontab and there’s one for the whole system. Note: Through the crontab configuration you can disable per-user crontabs.