3 # pand Bluetooth Personal Area Networking Daemon
7 # description: Bluetooth Personal Area Networking Daemon. Provides network services over Bluetooth.
12 # Source function library
13 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
17 [ -f /etc/sysconfig/bluetooth ] && . /etc/sysconfig/bluetooth
19 is_no "${NETWORKING}" && exit 0
22 # Check if the service is already running?
23 if [ -f /var/lock/subsys/pand ]; then
24 msg_already_running pand
29 daemon /usr/bin/pand ${PAND_OPTIONS}
31 touch /var/lock/subsys/pand
35 if [ ! -f /var/lock/subsys/pand ]; then
41 killproc /usr/bin/pand
42 rm -f /var/lock/subsys/pand
46 if [ ! -f /var/lock/subsys/pand ]; then
57 # See how we were called.
65 restart|reload|force-reload)
74 if [ -f /var/lock/subsys/pand ]; then
83 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"