#!/bin/bash

num=$(ps aux | grep Snapp.js | wc -l)
now=$(date +"%d_%m_%Y")

if [ $num -eq '1' ]; then
   node /var/www/snappciti/snapp/build/snapp/Snapp.js > /var/www/snappciti/snapp/build/snapp/log/snapp_$now.log &
fi
