raspberrypi/configs/motion/run_server
2015-02-14 21:21:40 -08:00

11 lines
166 B
Bash
Executable file

#!/bin/bash
export NODE_PATH="$(npm root -g)"
#echo $NODE_PATH
while true; do
if [ -f "STOP" ]; then
rm -f STOP
exit 0
fi
node server.js
sleep 5
done