diff --git a/Bouncer.sh b/Bouncer.sh new file mode 100755 index 0000000..f1ceaaf --- /dev/null +++ b/Bouncer.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Run the EDDN Bouncer from source + +set -e + +# Need to be in the src directory, relative to this script +cd "$(dirname $0)/src" +# And we invoke the *module*, not the script by filename. +python -m eddn.Bouncer $@ diff --git a/Gateway.sh b/Gateway.sh new file mode 100755 index 0000000..7bd6f5b --- /dev/null +++ b/Gateway.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Run the EDDN Gateway from source + +set -e + +# Need to be in the src directory, relative to this script +cd "$(dirname $0)/src" +# And we invoke the *module*, not the script by filename. +python -m eddn.Gateway $@ diff --git a/Monitor.sh b/Monitor.sh new file mode 100755 index 0000000..c0fe993 --- /dev/null +++ b/Monitor.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Run the EDDN Monitor from source + +set -e + +# Need to be in the src directory, relative to this script +cd "$(dirname $0)/src" +# And we invoke the *module*, not the script by filename. +python -m eddn.Monitor $@ diff --git a/Relay.sh b/Relay.sh new file mode 100755 index 0000000..0756dfd --- /dev/null +++ b/Relay.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# +# Run the EDDN Relay from source + +set -e + +# Need to be in the src directory, relative to this script +cd "$(dirname $0)/src" +# And we invoke the *module*, not the script by filename. +python -m eddn.Relay $@ diff --git a/docs/Running-this-software.md b/docs/Running-this-software.md index 8911eea..33e027a 100644 --- a/docs/Running-this-software.md +++ b/docs/Running-this-software.md @@ -387,15 +387,20 @@ You have some choices for how to run the application components: ## Running scripts from source If you are just testing out code changes then you can choose to run -this application directly from the source: +this application directly from the source. To do so you need to reference +the correct module with `-m` rather than specifying the file directly: -``` +```sh cd /src python -m eddn.Gateway --config ``` +If running in an environment with a POSIX 'Bourne' shell then there are +helper scripts: -Check the `systemd/eddn__config` files for the location of -the logs directory. +```sh +cd +./Gateway.sh --config +``` ## Running from installation Otherwise you will want to utilise the `setup.py` file to build and