0
If some task should run in an frequent but not neccessary precise manner, what would the benefits of using cron
vs. just using a service (eg. managed by upstart
) with a loop script like
#!/bin/sh
while true
do
do_task
sleep 3600
done
?
With today's upstart
we can select the user with the setuid
command, and upstart can be configured to restart the script if it dies, stop it if wanted etc.
Is there any real benefit of messing with cron either in this situation?