#!/bin/sh
# chkconfig: 2345 90 60
#/etc/init.d/nodeup
export PATH=$PATH:/usr/local/bin
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules
case "$1" in
start)
cd /home/administrator/ASP/scripts
exec forever start --sourceDir=/home/administrator/ASP/scripts -p /home/admini strator/ASP/scripts/log index.js
;;
stop)
exec forever stop --sourceDir=/home/administrator/ASP/scripts index.js
;;
*)
echo "Usage: /etc/init.d/nodeup {start|stop}"
exit 1
;;
esac
exit 0