examples: Added some commentary.
[ashd.git] / examples / python / dynhosts / run
index fe81f84..d4203ea 100755 (executable)
@@ -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 .