pool/bin/kill_stratum
Tanguy Pruvot 00bafa5892 console: add kill_stratum bash script to reload an instance
sample usage: "kill_stratum x11"
2017-02-21 17:05:20 +01:00

13 lines
238 B
Bash
Executable file

#!/bin/bash
PLINE=$(ps -ef | grep "stratum config/$1" | grep -v grep)
if [ $? ]; then
PS=$(echo $PLINE | cut -d ' ' -f 2)
if [ $PS ]; then
kill $PS
echo "killed stratum process $PS"
else
echo "Process not found"
exit 1
fi
fi