Tuesday, 15 April 2014

bash - What does this crontab line do? -



bash - What does this crontab line do? -

the script deployment_worker.sh command script in charge of stopping , starting service each 2 hours... or think. apparently line in crontab else, judging fact process comes hell pretty fast whenever kill him:

* */2 * * * /srv/server_ctrl/deployment_worker.sh restart

in line 45 of deployment_worker.sh:

echo "issuing service start" >> $control_log

i issue line log file, , line appears in log, think means file gets executed (not me!)... , 1 comes mind cron daemon ....

so, here questions:

what above crontab line do?

to run 1 time every 2 hours:

0 */2 * * * <command-to-run>

so it's running 1 time min 12am 12:59, 2:00am 2:59, ... etc.

http://livecronjobs.com/how-to-run-cron-every-2-hour

bash crontab

No comments:

Post a Comment