Skip to content

Instantly share code, notes, and snippets.

@yuuki
Created February 15, 2013 00:05
Show Gist options
  • Save yuuki/4957550 to your computer and use it in GitHub Desktop.
Save yuuki/4957550 to your computer and use it in GitHub Desktop.
#!/bin/sh
exec 2>&1
exec /usr/bin/setuidgid growthforecast multilog t /etc/service/growthforecast/log/main
#!/bin/sh
exec 2>&1
export PERL_PATH=/home/growthforecast/perl5/perlbrew/perls/perl-5.14.3/bin/perl
export PLACK_ENV=production
export GROWTHFORECAST_ACCESS_LOG=/var/log/growthforecast_access_log
export GROWTHFORECAST_ERROR_LOG=/var/log/growthforecast_error_log
source /home/growthforecast/perl5/perlbrew/etc/bashrc
exec $PERL_PATH /home/growthforecast/perl5/perlbrew/perls/perl-5.14.3/bin/growthforecast.pl --data-dir /home/growthforecast/growthforecast --port 80 -- \
setuidgid growthforecast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment