X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=examples%2Fpython%2Fwsgidir%2Frun;fp=examples%2Fpython%2Fwsgidir%2Frun;h=5dbe5d21d041538342115a8b9ddfcfaddc62770b;hp=0000000000000000000000000000000000000000;hb=8774cda21dfafd73df99686ded102c4f6f5e2d2e;hpb=84a034e1e63195a8378acacb35eae8e45ef78f0f diff --git a/examples/python/wsgidir/run b/examples/python/wsgidir/run new file mode 100755 index 0000000..5dbe5d2 --- /dev/null +++ b/examples/python/wsgidir/run @@ -0,0 +1,15 @@ +#!/bin/sh + +# Change to the directory containing this script +set -e +cd "$(dirname "$0")" + +# Invoke dirplex running in this directory, loading the wsgidir.rc +# configuration file. The same configuration can be put in +# e.g. /etc/ashd/dirplex.d or in any .htrc file. + +# The setsid command ensures that SIGINT is only received by htparser +# and not by dirplex or its children; it is not of any importance, but +# makes shutdown slightly cleaner, and hides the KeyboardInterrupt +# otherwise raised by Python. +htparser plain:port=8080 -- setsid dirplex -c ./wsgidir.rc .