Kill web processes on mesh stop
This commit is contained in:
parent
2479abfe9f
commit
8dc2c345e1
|
@ -404,6 +404,13 @@ function mesh_batman {
|
||||||
echo ' if [ -f /usr/local/share/toxic/DHTnodes.internet ]; then' >> $batman_script
|
echo ' if [ -f /usr/local/share/toxic/DHTnodes.internet ]; then' >> $batman_script
|
||||||
echo ' mv /usr/local/share/toxic/DHTnodes.internet /usr/local/share/toxic/DHTnodes' >> $batman_script
|
echo ' mv /usr/local/share/toxic/DHTnodes.internet /usr/local/share/toxic/DHTnodes' >> $batman_script
|
||||||
echo ' fi' >> $batman_script
|
echo ' fi' >> $batman_script
|
||||||
|
echo '' >> $batman_script
|
||||||
|
echo ' # kill processes' >> $batman_script
|
||||||
|
echo ' zeronet_proc=$(ps aux | grep zeronet | awk -F " " "{print $2}" | head -n1)' >> $batman_script
|
||||||
|
echo ' kill -9 $zeronet_proc > /dev/null' >> $batman_script
|
||||||
|
echo ' tracker_proc=$(ps aux | grep bttrack | awk -F " " "{print $2}" | head -n1)' >> $batman_script
|
||||||
|
echo ' kill -9 $tracker_proc > /dev/null' >> $batman_script
|
||||||
|
echo '' >> $batman_script
|
||||||
echo ' ' >> $batman_script
|
echo ' ' >> $batman_script
|
||||||
echo ' rm -f /tmp/meshtype' >> $batman_script
|
echo ' rm -f /tmp/meshtype' >> $batman_script
|
||||||
echo '}' >> $batman_script
|
echo '}' >> $batman_script
|
||||||
|
|
Loading…
Reference in New Issue