diff options
author | Ingar <ingar@telenet.be> | 2024-12-29 15:07:45 +0000 |
---|---|---|
committer | Ingar <ingar@telenet.be> | 2024-12-29 15:07:45 +0000 |
commit | d4888d7e29f02f5fc113e44c577950250a03b131 (patch) | |
tree | cc2ea1cb76dace91934453e89c4f8526a253a6cb /indiserver_systemd | |
parent | 6f8d7b9e49b699601cc7090f8cb5e2fa0bb7754d (diff) |
Updated to v2.1.1, added systemd service files to installation.
Diffstat (limited to 'indiserver_systemd')
-rwxr-xr-x | indiserver_systemd | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/indiserver_systemd b/indiserver_systemd index 266d0ff..23410f4 100755 --- a/indiserver_systemd +++ b/indiserver_systemd @@ -1,8 +1,20 @@ #!/bin/sh -source /etc/indiserver.conf +INDI_CONF=/etc/indiserver.conf -echo "Launching INDI server with drivers $INDI_DRIVERS" +if [ -r "${INDI_CONF}" ]; then + source "${INDI_CONF}" +else + echo "INDI server: could not open file ${INDI_CONF}" + exit 127 +fi -exec /usr/bin/indiserver -v $INDI_DRIVERS +if [ -z "${INDI_DRIVERS}"]; then + echo "INDI server: no drivers defined in INDI_DRIVERS" + exit 127 +fi + +echo "Launching INDI server with drivers ${INDI_DRIVERS}" + +exec /usr/bin/indiserver -v ${INDI_DRIVERS} |