You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
docker-ircd/solanum/root/entrypoint.sh

35 lines
1.0 KiB

#!/bin/sh
set -e
mkdir -p /srv/data/etc /srv/data/logs
chown solanum:solanum -R /srv/data/logs
cp -n -p /srv/solanum/etc/ircd.conf.example /srv/data/etc/ircd.conf
cp -n -p /srv/solanum/etc/ircd.motd /srv/data/etc/ircd.motd
# Usage: solanum [options]
# Where valid options are:
# -configfile <string> File to use for ircd.conf
# -logfile <string> File to use for ircd.log
# -pidfile <string> File to use for process ID
# -foreground Run in foreground (don't detach)
# -version Print version and exit
# -conftest Test the configuration files and exit
# -help Print this text
rm -f /srv/solanum/ircd.pid
# Validate the configuration first
# Note: ehm... it returns exit code 0 regardless of the result??
#su solanum \
# -c "/srv/solanum/bin/solanum \
# -pidfile /srv/solanum/ircd.pid \
# -conftest"
su solanum \
-c "/srv/solanum/bin/solanum \
-pidfile /srv/solanum/ircd.pid \
-foreground \
$*"