Files
sample-node-api/scripts/restart-sample-node-api.sh
Nakul Manchanda f963f53b50 start restart script, missing feature
Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
2019-04-01 19:48:10 -04:00

7 lines
188 B
Bash

#!/bin/sh
echo 'restarting sample node api...'
ps -elf | awk '/node/ && /app.js/ && !/sh -c/' | awk '{print $3}' | xargs kill -9 $1
./start-sample-node-api.sh
sleep 30
echo 'restart done'