Skip to content

Instantly share code, notes, and snippets.

@fabriziomachado
Created December 7, 2011 16:03
Show Gist options
  • Save fabriziomachado/1443337 to your computer and use it in GitHub Desktop.
Save fabriziomachado/1443337 to your computer and use it in GitHub Desktop.
/etc/init/resize-image-job.conf
description "resize image worker gearman"
start on started mountall
stop on shutdown
respawn
respawn limit 99 5
script
exec php <<project_path>>/application/workers/resize_image_worker.php >> /var/log/resize-image-job.log 2>&1
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment