commit - 0cba8f362a29af3cbe26a24525f3899dcf5bbc1e
commit + 475ce1e93c25241a9e72289ce11d4b3ac2bbfdc2
blob - 9a75be71e9e422fa37db3c4a609b88f8472d76fc
blob + 7262429c8a612065e67db1c40ad4a2ced8a7c5d6
--- contrib/Debian/ngircd.init
+++ contrib/Debian/ngircd.init
#!/bin/sh
#
# ngIRCd start and stop script for Debian-based systems
+# Copyright 2008 Alexander Barton <alex@barton.de>
#
### BEGIN INIT INFO
test -x $DAEMON || exit 0
+# LSB compatibility functions that become used if there is no local
+# include file available.
log_daemon_msg() {
echo -n "$*"
}
echo "$*"
}
+# Include LSB functions, if available:
test -r /lib/lsb/init-functions && . /lib/lsb/init-functions
Check_Config()
{
+ # Make sure that the configuration of ngIRCd is valid:
$DAEMON --configtest >/dev/null 2>&1
if [ $? -ne 0 ]; then
log_failure_msg "Configuration of $NAME is not valid, won't (re)start!"
log_failure_msg "Run \"$DAEMON --configtest\" and fix it up ..."
exit 1
fi
+ # Make sure the PID file directory exists and is writable:
if [ ! -d /var/run/ircd ]; then
mkdir -p /var/run/ircd
- chown irc:irc /var/run/ircd
fi
+ chown irc:irc /var/run/ircd
}
case "$1" in