10 lines
234 B
Bash
Executable File
10 lines
234 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ps -ef|grep node|grep web3service|grep -v grep
|
|
if [ $? -eq 0 ]; then
|
|
ps -ef|grep node|grep web3service|grep -v grep|awk '{print $2}'|xargs kill -9
|
|
fi
|
|
|
|
cd bin
|
|
nohup node ../web3service/app.js >> web3service.out 2>&1 &
|