|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21573/task/21573/root/etc/rc0.d/ |
Upload File : |
#!/bin/sh
#
# pand: Bluetooth Personal Area Networking Daemon.
#
# chkconfig: - 26 89
# description: Bluetooth Personal Area Networking Daemon. Provides network \
# services over Bluetooth.
#
# Source function library.
. /etc/rc.d/init.d/functions
[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
[ "${NETWORKING}" = "yes" ] || exit 0
[ -r /etc/sysconfig/pand ] && . /etc/sysconfig/pand
start()
{
[ -z "$PANDARGS" ] && exit 0
[ -x /etc/bluetooth/pan/system-up ] && /etc/bluetooth/pan/system-up
echo -n $"Starting pand: "
daemon /usr/bin/pand $PANDARGS
touch /var/lock/subsys/pand
echo
}
stop()
{
echo -n $"Shutting down pand: "
/usr/bin/pand -K
killproc pand
[ -x /etc/bluetooth/pan/system-down ] && /etc/bluetooth/pan/system-down
rm -f /var/lock/subsys/pand
echo
}
[ -f /usr/bin/pand ] || exit 0
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
condrestart)
[ -e /var/lock/subsys/pand ] && (stop; start)
;;
status)
status pand
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|condrestart}"
exit 1
esac
exit 0