Enable and disable cron job
- how to disable cron job in linux
- how to disable crontab job in linux
- how to stop cron job in linux
- how to remove cron job in linux
How to disable cron job in kubernetes!
easily enable or disable cron
This may or may not work depending on which operating system (and which version of cron) you are using.
How to disable crontab for a user in linux
Checking some Linux boxes, their cron man page says this
Additionally, cron checks each minute to see if its spool directory's mod‐ time (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed.
Thus cron need not be restarted whenever a crontab file is modified. Note that the crontab(1) command updates the modtime of the spool directory whenever it changes a crontab.
So, providing the directory's mtime is updated then cron will check the individual crontabs to see if they have been updated a reread them.
If though we look at a Solaris 10 box it's cron man page says this
cron only examines crontab or at command files during it's own process initialization phase and when the crontab or at command is run.
This reduces the overhead of checking for new or changed files at regularly scheduled intervals.
So on a Solaris 10 system (and probably others)
- how to enable cron job in linux
- how to disable specific cron job in linux