4 # description: wesnothd games server
6 # wesnothd wesnothd server
8 # Source function library
9 . /etc/rc.d/init.d/functions
12 [ -f /etc/sysconfig/wesnothd ] && . /etc/sysconfig/wesnothd
15 if [ ! -f /var/lock/subsys/wesnothd ]; then
17 daemon --user wesnothd --fork '/usr/bin/wesnothd -p 14999 > /dev/null 2>&1'
19 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/wesnothd
21 msg_already_running wesnothd
26 if [ -f /var/lock/subsys/wesnothd ]; then
29 rm /var/lock/subsys/wesnothd
31 msg_not_running wesnothd
52 msg_usage "$0 {start|stop|restart|force-reload|status}"