3 # sobby: obby dedicated serwer
7 # description: Stand alone server for the obby colaborative editor
9 # Source function library
10 . /etc/rc.d/init.d/functions
13 . /etc/sysconfig/network
15 # Check that networking is up.
16 if is_yes "${NETWORKING}"; then
17 if [ ! -f /var/lock/subsys/network ]; then
18 msg_network_down sobby
25 . /etc/sysconfig/sobby
27 [ -z "$SOBBY_PORT" ] && SOBBY_PORT=6522
29 # See how we were called.
32 # Check if the service is already running?
33 if [ ! -f /var/lock/subsys/sobby ]; then
35 sobby -p $SOBBY_PORT $SOBBY_OPTIONS
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sobby
39 msg_already_running sobby
43 if [ -f /var/lock/subsys/sobby ]; then
47 rm -f /var/lock/subsys/sobby
58 if [ -f /var/lock/subsys/sobby ]; then
68 # if program allows reloading without stopping
81 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
87 # This must be last line !