#!/bin/bash
su - postgres -c "/usr/local/pgsql/bin/pg_ctl -U postgres -D /usr/local/pgsql/data restart"
sleep 1
su - nobody -c "num=$(ps aux | grep a.js | grep -v grep | grep -v bash | awk '{print $2}');if [ ! -z \$num ]; then kill -9 \$num;fi; cd /opt/nvme/alpha && node a.js &"
