examples: Added some commentary.
[ashd.git] / examples / python / dynhosts / run
CommitLineData
7f838309
FT
1#!/bin/sh
2
0c345c82 3# Change to the directory containing this script
7f838309
FT
4set -e
5cd "$(dirname "$0")"
6
0c345c82
FT
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.
7f838309 12htparser plain:port=8080 -- setsid ./dynhosts .