Suppose I have several cron jobs set up to run at the same time: do they execute in parallel or just one after another?
(My case is Debian squeeze with cronjobs put inside /etc/cron.d/mycronjobs).
crondebianlinux
Suppose I have several cron jobs set up to run at the same time: do they execute in parallel or just one after another?
(My case is Debian squeeze with cronjobs put inside /etc/cron.d/mycronjobs).
Best Answer
For completeness, jobs in e.g. /etc/cron.{hourly,daily,weekly,monthly} are run sequentially. The run-parts script loops over all files in this directory.
So you can use that in combination with a naming convention (similar to the numbering in
/etc/init.d/rc*.d
for example) to make sure jobs run sequentially.