crontab -e TASK for my SERVER

Job ID: 33429140

Budget: $10 – $30 USD

Hello to everyone

I would like to create a Crontab -e on my Ubuntu 18.04 server so it can execute an avtivity every month but I do not know which one is correct.

This task is to reset Mosquitto server

1st. 0 0 1 * * sudo systemctl restart mosquitto
2nd. 0 0 1 * * systemctl restart mosquitto
3rd. 0 0 1 * * restart mosquitto

which one to use and how to check is the correct command
Related categories: System Admin Linux Apache Ubuntu Debian