|
|
|
@ -1,5 +1,7 @@ |
|
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
mkdir -p /srv/data/etc /srv/data/logs |
|
|
|
|
|
|
|
|
|
chown solanum:solanum -R /srv/data/logs |
|
|
|
@ -7,7 +9,27 @@ 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 \ |
|
|
|
|
$*" |
|
|
|
|