3 # ircd This shell script takes care of starting and stopping ircd.
6 # description: Internet Relay Chat Server.
9 # Source function library.
10 . /etc/rc.d/init.d/functions
12 # Source networking configuration.
13 . /etc/sysconfig/network
16 [ -f /etc/sysconfig/ircd ] && . /etc/sysconfig/ircd
18 # Check that networking is up.
19 if is_yes "${NETWORKING}"; then
20 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
21 msg_network_down bIRCd
31 # See how we were called.
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/ircd ]; then
37 msg_starting "bIRCd Server"
39 touch /var/lock/subsys/ircd
41 msg_already_running bIRCd
45 # Check if the service is already running?
46 if [ -f /var/lock/subsys/ircd ]; then
48 msg_stopping "bIRCd Server"
50 rm -f /var/lib/ircd/ircd.pid
51 rm -f /var/lock/subsys/ircd
57 if [ -f /var/lock/subsys/ircd ]; then
58 msg_reloading "bIRCd Server"
59 killproc ${IRCD#\-} -HUP
62 msg_not_running bIRCd >&2
76 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"