3 # wicd Wicd Wireless Connection Daemon
7 # description: Wicd Wireless Connection Daemon
10 # pidfile: /var/run/wicd.pid
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 . /etc/sysconfig/network
20 # Get service config - may override defaults
21 [ -f /etc/sysconfig/wicd ] && . /etc/sysconfig/wicd
23 # Check that networking is up.
24 if is_yes "${NETWORKING}"; then
25 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
26 msg_network_down "Wicd Connection Daemon"
34 # Check if the service is already running?
35 if [ -f /var/lock/subsys/wicd ]; then
36 msg_already_running "Wicd Connection Daemon"
40 msg_starting "Wicd Connection Daemon"
43 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/wicd
47 if [ ! -f /var/lock/subsys/wicd ]; then
48 msg_not_running "Wicd Connection Daemon"
53 msg_stopping "Wicd Connection Daemon"
54 killproc --pidfile /var/run/wicd.pid wicd -TERM
55 rm -f /var/lock/subsys/wicd
59 if [ ! -f /var/lock/subsys/wicd ]; then
60 msg_not_running "Wicd Connection Daemon"
70 # See how we were called.
89 status --pidfile /var/run/wicd.pid wicd
93 msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload|status}"