Thanks, it works by adding a "-m" to start-stop-daemon

I've upgraded my script to admin those transports to add yahoo-py support :
http://ploum.fritalk.com/jab_transport

On 5/16/06, Norman Rasmussen <[EMAIL PROTECTED]> wrote:
> On 5/16/06, Lionel Dricot <[EMAIL PROTECTED]> wrote:
> > Any idea on how I can daemonize it ? (and if possible have a pid file
> > like other pygateway ?)
>
> you can the startup scripts I use here:
>     http://darkskies.za.net/~norman/jabber/xmpp-irc
>     http://darkskies.za.net/~norman/jabber/xmpp-yahoo
>
> --
> - Norman Rasmussen
>  - Email: [EMAIL PROTECTED]
>  - Home page: http://norman.rasmussen.co.za/
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
From [EMAIL PROTECTED]  Wed May 17 01:03:13 2006
From: [EMAIL PROTECTED] (Alexey Nezhdanov)
Date: Wed May 17 01:03:20 2006
Subject: [py-transports] PyYIMt with ejabberd ?
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On Tuesday 16 May 2006 21:57, Lionel Dricot wrote:
> I found it ! I had to apt-get python2.4-xmpp.
> Now, I got it running, wich is fine, thanks for the work.
>
> Any idea on how I can daemonize it ?
apt-get install jabber-irc
then examine it's init.d script
> (and if possible have a pid file 
> like other pygateway ?)
open('pidfile','w').write(`os.getpid()`)
>
> On 5/16/06, Alexey Nezhdanov <[EMAIL PROTECTED]> wrote:
> > On Tuesday 16 May 2006 21:21, Lionel Dricot wrote:
> > > I've only apt-getted the testing version of python-xmpp (0.3.1).
> > > Nothing more.
> >
> > oh. Then do not know why.
> > Norman, any suggestions?
> >
> > --
> > Respectfully
> > Alexey Nezhdanov

-- 
Respectfully
Alexey Nezhdanov
From [EMAIL PROTECTED]  Wed May 17 09:18:35 2006
From: [EMAIL PROTECTED] (Pedro Melo)
Date: Wed May 17 09:18:46 2006
Subject: [py-transports] pyMSNt: traceback and possible patch
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Hi,

botched the previous patch.

Use this one (atttached) instead.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: msnw-20060517.patch
Type: application/octet-stream
Size: 503 bytes
Desc: not available
Url : 
http://modevia.com/pipermail/py-transports/attachments/20060517/638f1441/msnw-20060517-0001.obj
-------------- next part --------------

Best regards,

PS: white-space in python is killing me :)

On May 16, 2006, at 9:03 PM, Pedro Melo wrote:

> Hi,
>
> got this traceback:
>
> [2006-05-16 20:55:54] Traceback (most recent call last):
>           File "/usr/lib/python2.3/site-packages/twisted/python/ 
> log.py", line 56, in callWithLogger
>             return callWithContext({"system": lp}, func, *args, **kw)
>           File "/usr/lib/python2.3/site-packages/twisted/python/ 
> log.py", line 41, in callWithContext            return context.call 
> ({ILogContext: newCtx}, func, *args, **kw)
>           File "/usr/lib/python2.3/site-packages/twisted/python/ 
> context.py", line 52, in callWithContext            return  
> self.currentContext().callWithContext(ctx, func, *args, **kw)
>           File "/usr/lib/python2.3/site-packages/twisted/python/ 
> context.py", line 31, in callWithContext            return func 
> (*args,**kw)
>         --- <exception caught here> ---
>           File "/usr/lib/python2.3/site-packages/twisted/internet/ 
> pollreactor.py", line 160, in _doReadOrWrite
>             why = selectable.doRead()
>           File "/usr/lib/python2.3/site-packages/twisted/internet/ 
> tcp.py", line 351, in doRead            return  
> self.protocol.dataReceived(data)
>           File "/usr/lib/python2.3/site-packages/twisted/protocols/ 
> basic.py", line 221, in dataReceived            why =  
> self.lineReceived(line)
>           File "/servers/pymsnt/src/tlib/msn/msn.py", line 825, in  
> lineReceived
>             try: handler(params.split(' '))
>           File "/servers/pymsnt/src/tlib/msn/msn.py", line 2226, in  
> handle_ANS            self.loggedIn()
>           File "/servers/pymsnt/src/tlib/msn/msnw.py", line 678, in  
> loggedIn            self._ready()
>           File "/servers/pymsnt/src/tlib/msn/msnw.py", line 646, in  
> _ready            self.userJoined(user)
>           File "/servers/pymsnt/src/tlib/msn/msnw.py", line 698, in  
> userJoined            d = self.sendAvatarRequest()
>           File "/servers/pymsnt/src/tlib/msn/msnw.py", line 745, in  
> sendAvatarRequest            msnContacts = self.msncon.getContacts()
>         exceptions.AttributeError: 'NoneType' object has no  
> attribute 'getContacts'
>
> Possible patch:
>
> --- src/tlib/msn/msnw.py        (revision 874)
> +++ src/tlib/msn/msnw.py        (local)
> @@ -742,6 +742,7 @@
>         CAPS = msn.MSNContact.MSNC1 | msn.MSNContact.MSNC2 |  
> msn.MSNContact.MSNC3 | msn.MSNContact.MSNC4
>         def sendAvatarRequest(self):
>                 if not self.ready: return
> +    if not self.msncon: return
>                 msnContacts = self.msncon.getContacts()
>                 if not msnContacts: return
>                 msnContact = msnContacts.getContact(self.remoteUser)
>
> (ignore revision in header, I'm using svk).
>
> Best regards,
> --
> HIId: Pedro Melo
> SMTP: [EMAIL PROTECTED]
> XMPP: [EMAIL PROTECTED]
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports

--
HIId: Pedro Melo
SMTP: [EMAIL PROTECTED]
XMPP: [EMAIL PROTECTED]

Reply via email to