blockchain-explorer/monitor.sh

14 lines
220 B
Bash
Executable File

#
# SPDX-License-Identifier: Apache-2.0
#
#!/bin/bash
while [ 1 ];do
sleep 10
process_num=$(ps -elf | grep -v grep | grep main.js | wc -l)
if [ ${process_num} -eq 0 ];then
./start.sh
fi
done