3 # wicd wicd wireless connection daemon
7 # description: wicd wireless connection daemon
11 # pidfile: /var/run/wicd.pid
15 # Source function library
16 . /etc/rc.d/init.d/functions
19 # Get service config - may override defaults
20 # [ -f /etc/sysconfig/wicd ] && . /etc/sysconfig/wicd
22 WICD_BIN=/usr/sbin/wicd
23 WICD_PIDFILE=/var/run/wicd.pid
24 WICD_LOCKFILE=/var/lock/subsys/wicd
27 # Check if the service is already running?
28 if [ ! -f $WICD_LOCKFILE ]; then
32 [ $RETVAL -eq 0 ] && touch $WICD_LOCKFILE
34 msg_already_running wicd
39 if [ -f $WICD_LOCKFILE ]; then
43 killproc --pidfile $WICD_PIDFILE wicd -TERM
52 if [ -f $WICD_LOCKFILE ]; then
62 # See how we were called.
77 # use this one if program doesn't support reloading without restart
82 status --pidfile $WICD_PIDFILE wicd
86 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"