Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | ||
3 | # Change to the directory containing this script | |
4 | set -e | |
5 | cd "$(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. | |
12 | htparser plain:port=8080 -- setsid ./dynhosts . |