5 # description: Jabber ICQ transport
7 # Source function library
8 . /etc/rc.d/init.d/functions
11 . /etc/sysconfig/network
13 # Check that networking is up.
14 if is_yes "${NETWORKING}"; then
15 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
16 msg_network_down pyICQt
24 # Check if the service is already running?
25 if [ ! -f /var/lock/subsys/PyICQt ]; then
26 msg_starting "Jabber ICQ transport"
27 daemon /usr/sbin/pyicqt.sh /etc/jabber/PyICQt.xml
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/PyICQt
31 msg_already_running PyICQt
36 # Check if the service is already running?
37 if [ -f /var/lock/subsys/PyICQt ]; then
38 msg_stopping "Jabber ICQ transport"
39 killproc --pidfile /var/run/PyICQt.pid PyICQt
40 rm -f /var/lock/subsys/PyICQt
42 msg_not_running PyICQt
47 # See how we were called.
65 msg_usage "$0 {start|stop|restart|force-reload|status}"