4 # davfsd davfsd (WEB-DAV Linux File System)
8 # description: davfsd is a server part of the WEB-DAV Linux File System
12 # Source function library
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
19 [ -f /etc/sysconfig/davfsd ] && . /etc/sysconfig/davfsd
21 # Check that networking is up.
22 if is_no "${NETWORKING}"; then
23 msg_network_down davfsd
28 # See how we were called.
31 # Check if the service is already running?
32 if [ ! -f /var/lock/subsys/davfsd ]; then
34 daemon /usr/sbin/davfsd
36 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/davfsd
38 msg_already_running davfsd
43 if [ -f /var/lock/subsys/davfsd ]; then
46 rm -f /var/run/davfsd.pid /var/lock/subsys/davfsd >/dev/null 2>&1
48 msg_not_running davfsd
65 msg_usage "$0 {start|stop|init|restart|reload|status}"