Kill web processes on mesh stop

This commit is contained in:
Bob Mottram 2015-09-03 18:21:37 +01:00
parent 2479abfe9f
commit 8dc2c345e1
1 changed files with 7 additions and 0 deletions

View File

@ -405,6 +405,13 @@ function mesh_batman {
echo ' mv /usr/local/share/toxic/DHTnodes.internet /usr/local/share/toxic/DHTnodes' >> $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 ' rm -f /tmp/meshtype' >> $batman_script
echo '}' >> $batman_script
echo '' >> $batman_script