Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (21 sloc) 0.479 kb
#!/bin/bash
while true;
do
echo starting $(date);
script_directory=`dirname "$0"`;
cd $script_directory;
#touch /var/log/nodejs.log
#chmod 777 /var/log/nodejs.log
#
# echo "bla" > file.txt # replaces file
# echo "bla" >> file.txt # appends to file
#
/usr/local/bin/node server.js $* > /var/log/nodejs.log 2>&1;
exit_value="$?" ;
echo stopping $(date);
if [ "$exit_value" != "0" ]; then
sleep 5;
else
sleep 0.5;
fi ;
done;
Jump to Line
Something went wrong with that request. Please try again.