Update simdht.tpl

This commit is contained in:
Mr Chen 2019-02-09 18:17:25 +08:00
parent 14f59c7ae7
commit 3783ab407b
1 changed files with 2 additions and 1 deletions

View File

@ -16,11 +16,12 @@
dht_start(){
cd {$SERVER_PATH}/simdht/workers
nohup python simdht_worker.py > {$SERVER_PATH}/simdht/logs.pl 2>&1 &
echo "simdht started"
}
dht_stop(){
echo "Stopping ..."
ps -ef | grep "python simdht" | grep -v grep | awk '{print $2}' | xargs kill
echo "Redis stopped"
echo "simdht stopped"
}