Skip to content

Instantly share code, notes, and snippets.

@aaronpk aaronpk/init-script
Created Mar 20, 2015

Embed
What would you like to do?
adjust paths appropriately
# This file goes in something like
# /etc/init/service-name
start on runlevel [2345]
stop on runlevel [016]
respawn
exec sudo -u www /full/path/to/start.sh >> /var/log/worker.log 2>&1
#!/bin/bash
cd /web/example.com/scripts
/usr/bin/php /web/example.com/scripts/run.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.