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
17 if [ ! -f /var/lock/subsys/wesnothd ]; then
19 daemon "su - nobody -s /bin/sh -c '/usr/bin/wesnothd &'"
21 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/wesnothd
23 msg_already_running wesnothd
27 if [ -f /var/lock/subsys/wesnothd ]; then
30 rm /var/lock/subsys/wesnothd
32 msg_not_running wesnothd
45 msg_usage "$0 {start|stop|restart|force-reload|status}"