Add motsognir

This commit is contained in:
Christian
2020-12-15 21:22:43 +01:00
committed by Christian Richter
parent 7cebcd9231
commit 812b4617e1
8 changed files with 171 additions and 0 deletions

11
motsognir/entrypoint.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
CONFIGFILE=${CONFIGFILE:-/gopher/motsognir.conf}
if [ ! -f ${CONFIGFILE} ]; then
echo "${CONFIGFILE} can not be found; bailing out!"; exit 1;
fi
echo "Using ${CONFIGFILE} to start motsognir"
trap "echo TRAPed signal" HUP INT QUIT TERM
touch /var/log/syslog
rsyslogd -n & sleep 20 &&
motsognir --config "${CONFIGFILE}"
tail -f /var/log/syslog