3 # cr conferenceroom ircd service
7 # description: conferenceroom ircd service
11 # Source function library
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
20 # Get service config - may override defaults
21 [ -f /etc/sysconfig/cr ] && . /etc/sysconfig/cr
23 # Check that networking is up.
24 if is_yes "${NETWORKING}"; then
25 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/cr ]; then
36 msg_starting "Conference Room IRCD"
38 daemon /usr/lib/cr/programs/launcher /usr/lib/cr $SERVICES
39 # daemon /usr/lib/cr/programs/launcher /etc/cr $SERVICES
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/cr
43 msg_already_running "Conference Room IRCD"
48 if [ -f /var/lock/subsys/cr ]; then
50 msg_stopping "Conference Room IRCD"
55 # /usr/lib/cr/programs/ConfRoom -stop
57 # /usr/lib/cr/programs/WMws -stop
59 # [ "$rc" = 0 ] && ok || fail
60 rm -f /var/lock/subsys/cr
62 msg_not_running "Conference Room IRCD"
67 # See how we were called.
85 msg_usage "$0 {start|stop|restart|status}"