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.
20 lines
558 B
20 lines
558 B
#!/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"
|
|
|