Add motsognir
This commit is contained in:
committed by
Christian Richter
parent
7cebcd9231
commit
812b4617e1
11
motsognir/entrypoint.sh
Executable file
11
motsognir/entrypoint.sh
Executable 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
|
||||
Reference in New Issue
Block a user