#!/bin/sh mkdir -p /srv/config /srv/logs chown ircd:ircd -R /srv/config /srv/logs if [ ! -e /srv/config/ircd.conf ]; then echo "Configuration file not found. Generating it..." cp /srv/ircd/etc/ircd.conf.example /srv/config/ircd.conf fi if [ ! -e /srv/config/ircd.motd ]; then echo "MOTD file not found. Generating it..." cp /srv/ircd/etc/ircd.motd /srv/config/ircd.motd fi su ircd -c "/srv/ircd/bin/solanum \ -configfile /srv/config/ircd.conf \ -logfile /srv/logs/ircd.logs \ -foreground"