Task - create a cron job

How to verify if the cron service is running on root user?
as per google suggestions tried few commands. not sure, if ther service is running based on the command outputs. Please check and advise?
Thanks,
Swaroop



sudo crontab -u root -l

Hello,

Since as per question you are asked to install cronie package and the service name is crond so you need to make sure crond service is up and running.

Thanks
Inderpreet

@Inderpreet

I hope this commands can validate whether the intended service is up and running right?

sudo systemctl restart crond

sudo systemctl status crond

Thanks,
Swaroop

Correct!

Thanks
Inderpreet