mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
console: add kill_stratum bash script to reload an instance
sample usage: "kill_stratum x11"
This commit is contained in:
parent
9d1630c40c
commit
00bafa5892
1 changed files with 13 additions and 0 deletions
13
bin/kill_stratum
Executable file
13
bin/kill_stratum
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/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
|
Loading…
Add table
Reference in a new issue