Skip to content
Snippets Groups Projects
Commit f10e243c authored by Jaden Diefenbaugh's avatar Jaden Diefenbaugh
Browse files

finally resolved - moved trap to top to actually catch signals

parent f0868491
No related branches found
No related tags found
1 merge request!223Reports overhaul
......@@ -15,6 +15,9 @@
# speed up testing.
###############################################################################
# clean up any type of exit
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
# make sure the beat web server and web manager arent running already
if [ $(ps aux | grep -c 'django runserver') -gt 1 ]
then
......@@ -78,6 +81,3 @@ then
echo 'restoring old database...'
mv old.django.sql3 django.sql3
fi
# clean up any type of exit
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment