1

How would I suspend all use of crontab until the system is rebooted? The system runs ubuntu 24.04. I say all use because several IDs on the system have crontabs.

1 Answer 1

3

Stop its service

sudo systemctl stop cron.service

(It would make more sense to start cron BEFORE reboot if you do it after the "@reboot" options in your crontabs will not activate

manual restart:

sudo systemctl start cron.service

)

3
  • Excellent point that a reboot will not restart a service which has been intentially stopped. I forgot that point.
    – thing1
    Commented Aug 26 at 15:16
  • @thing1 it will. Why do you think that? With systemd you need to disable a service to prevent it from starting on reboot
    – muru
    Commented Aug 26 at 15:34
  • @thing1 it will be it is far more logical to start BEFORE reboot and not after a reboot
    – Rinzwind
    Commented Aug 26 at 16:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .