mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-20 10:37:38 +03:00
Add contrib/run-from-source.sh
This allows for running the three components without first installing them in any manner. You can just git clone, configure (including certificate files) and go.
This commit is contained in:
parent
a8a6fd15a4
commit
8d34c3335f
27
contrib/run-from-source.sh
Normal file
27
contrib/run-from-source.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
# vim: textwidth=0 wrapmargin=0 tabstop=2 shiftwidth=2 softtabstop=2 smartindent smarttab
|
||||
|
||||
BASEPATH="TOP LEVEL OF GIT CLONE"
|
||||
LOGPATH="${BASEPATH}/logs"
|
||||
PYTHON="python2.7"
|
||||
|
||||
cd "${BASEPATH}" || exit 1
|
||||
mkdir -p ${LOGPATH} || exit 2
|
||||
cd eddn/src/eddn || exit 4
|
||||
|
||||
for d in Relay Monitor Gateway ;
|
||||
do
|
||||
echo "$d"
|
||||
if ps "$(cat ${LOGPATH}/${d}.pid)" >/dev/null 2>&1;
|
||||
then
|
||||
echo "$d: Already running as $(cat ${LOGPATH}/${d}.pid)"
|
||||
continue
|
||||
fi
|
||||
${PYTHON} -m eddn.${d} \
|
||||
--config ${BASEPATH}/etc/settings.json \
|
||||
> ${LOGPATH}/$d.log \
|
||||
2>&1 &
|
||||
echo $! > "${LOGPATH}/${d}.pid"
|
||||
#sleep 1
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user