Skip to content

Commit

Permalink
remove the /import/ dir if we shutdown the container
Browse files Browse the repository at this point in the history
  • Loading branch information
bgruening committed Jul 26, 2014
1 parent a7f236e commit 43c8ac8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion monitor_traffic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

if [ `netstat -t | grep -v CLOSE_WAIT | grep ':6789' | wc -l` -lt 3 ]
then
pkill ipython
pkill ipython
# We will create new history elements with all data that is relevant,
# this means we can delete everything from /import/
rm /import/ -rf
fi

0 comments on commit 43c8ac8

Please sign in to comment.