X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=examples%2Fpython%2Fdynhosts%2Frun;h=d4203ea92e8cdb80c0d6eca2c6758359bee76b80;hp=fe81f8452f24147cb79bccb4891ff65ecf020183;hb=0c345c82fe0465b7e92076b90e3132ae3b6eba98;hpb=121587a56e50fd4cce884d9e61e8796436b150a4 diff --git a/examples/python/dynhosts/run b/examples/python/dynhosts/run index fe81f84..d4203ea 100755 --- a/examples/python/dynhosts/run +++ b/examples/python/dynhosts/run @@ -1,6 +1,12 @@ #!/bin/sh +# Change to the directory containing this script set -e cd "$(dirname "$0")" +# Start htparser running this dynhosts script. The setsid command +# ensures that SIGINT is only received by htparser and not by +# dynhosts; it is not of grave importance, but makes shutdown slightly +# more clean, and hides the KeyboardInterrupt otherwise raised by +# Python. htparser plain:port=8080 -- setsid ./dynhosts .