examples: Added some commentary.
[ashd.git] / examples / python / dynhosts / run
... / ...
CommitLineData
1#!/bin/sh
2
3# Change to the directory containing this script
4set -e
5cd "$(dirname "$0")"
6
7# Start htparser running this dynhosts script. The setsid command
8# ensures that SIGINT is only received by htparser and not by
9# dynhosts; it is not of grave importance, but makes shutdown slightly
10# more clean, and hides the KeyboardInterrupt otherwise raised by
11# Python.
12htparser plain:port=8080 -- setsid ./dynhosts .