Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 505 Bytes
description "vhosts via NodeJS and Connect"
version "2.1"
author "AJ ONeal"
# Upstart has nothing in $PATH by default
env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Keep the server running on crash or machine reboot
start on runlevel [2345]
# Start the server using spark and redirect output to log files
DATE=`date '+%F_%H-%M-%S'`
cd /var/webapps
mkdir -p logs
exec node bin/server > "./logs/access.${DATE}.log" 2> "./logs/error.${DATE}.log"
end script