Skip to content

Instantly share code, notes, and snippets.

@tvjames
Created July 15, 2012 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tvjames/3116345 to your computer and use it in GitHub Desktop.
Save tvjames/3116345 to your computer and use it in GitHub Desktop.
templates/apps/daemon
#!/bin/bash -e
CMD="echo $PORT"
PORT=`eval $CMD`
echo "Starting on port: $PORT"
exec %(mono_xsp4)s --nonstop --port $PORT --root %(app_folder_root)s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment