Skip to content

Instantly share code, notes, and snippets.

@infusion
Created August 16, 2015 01:45
Show Gist options
  • Save infusion/fed60bbf320328da7ac8 to your computer and use it in GitHub Desktop.
Save infusion/fed60bbf320328da7ac8 to your computer and use it in GitHub Desktop.
Fork a command and write the pid file on Bash
((/usr/local/php/bin/php -f /var/www/queue.php) & echo $! > /var/run/queue.pid &)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment