Skip to content

Instantly share code, notes, and snippets.

@riywo
Created December 29, 2011 07:01
Show Gist options
  • Save riywo/1532485 to your computer and use it in GitHub Desktop.
Save riywo/1532485 to your computer and use it in GitHub Desktop.
daemontoolsのrunでperlbrewのbashrc使う
#!/bin/sh
exec 2>&1
export HOME=/home/riywo
cd /home/riywo/MyApp
exec setuidgid riywo ./script/start.sh
#!/bin/sh
source /home/riywo/perl5/perlbrew/etc/bashrc
carton exec plackup -- -r -s Starman --workers 10 -a app.psgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment