5 # description: Jabber MSN 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 PyMSNt
24 # Check if the service is already running?
25 if [ ! -f /var/lock/subsys/PyMSNt ]; then
26 msg_starting "Jabber MSN transport"
27 daemon /usr/share/pymsnt/PyMSNt.py -c /etc/jabber/PyMSNt.xml
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/PyMSNt
31 msg_already_running PyMSNt
36 # Check if the service is already running?
37 if [ -f /var/lock/subsys/PyMSNt ]; then
38 msg_stopping "Jabber MSN transport"
39 killproc --pidfile /var/run/PyMSNt.pid PyMSNt
40 rm -f /var/lock/subsys/PyMSNt
42 msg_not_running PyMSNt
47 # See how we were called.
64 msg_usage "$0 {start|stop|restart|force-reload|status}"