Created
March 15, 2013 02:44
-
-
Save holysugar/5167124 to your computer and use it in GitHub Desktop.
/etc/init/growthforecast.conf with upstart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start on startup | |
stop on runlevel [016] | |
respawn | |
env USER="growthforecast" | |
env PERLVER=5.16.2 | |
env PROG_PATH=/home/${USER}/perl5/perlbrew/perls/perl-${PERLVER}/bin/growthforecast.pl | |
env LOG="/var/log/growthforecast/growthforecast.log" | |
env MYSQL_USER=growthforecast | |
env MYSQL_PASSWORD= | |
exec su -c "MYSQL_USER=${MYSQL_PASSWORD} MYSQL_PASSWORD=${MYSQL_PASSWORD} exec ${PROG_PATH} --with-mysql 'dbi:mysql:growthforecast;hostname=localhost' --host 127.0.0.1 --front-proxy 127.0.0.1 --port 5125 >> ${LOG} 2>&1" ${USER} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment