#!/sbin/runscript # Copyright 2004-2006 BreakMyGentoo.net # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need jabber-server } start() { einfo "Starting Yahoo Jabber-transport" start-stop-daemon --start --chuid jabber:jabber --background \ --name="xmpppy-yahoo" --exec /usr/bin/PATH \ /usr/lib/PATH/site-packages/xmpppy-yahoo/yahoo.py eend $? } stop() { einfo "Stopping Yahoo Jabber-transport" kill $(ps uax | grep ^jabber | grep yahoo | awk -F " " '{print $2}') eend $? }