mirror of
https://github.com/jlengrand/sample-node-api.git
synced 2026-03-10 08:41:23 +00:00
8 lines
291 B
Bash
8 lines
291 B
Bash
#!/bin/sh
|
|
|
|
echo 'restarting sample node api...'
|
|
# ps -elf | awk '/node/ && /app.js/ && !/sh -c/' | awk '{print $2}' | xargs kill -9 $1
|
|
ps -elf | awk '/node/ && /app.js/ && !/sh -c/' | awk '{print $3}' | xargs kill -9 $1
|
|
./start-sample-node-api.sh
|
|
sleep 30
|
|
echo 'restart sample node api done' |