X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=examples%2Fpython%2Fdynhosts%2Frun;h=d4203ea92e8cdb80c0d6eca2c6758359bee76b80;hb=0c345c82fe0465b7e92076b90e3132ae3b6eba98;hp=fe81f8452f24147cb79bccb4891ff65ecf020183;hpb=7f8383098e49588529e3a203ed6d7bb2f27aef5c;p=ashd.git 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 .