James Bunton writes:
- Should I link to these packages from the home page?

        Sure.. The meta project is pkgsrc,
http://www.pkgsrc.org.  pkgsrc-wip is a SourceForge project,
http://pkgsrc-wip.sf.net.  The package itself is
wip/py-jabber-msnt. (I don't have the URL to the CVS interface
for the package.)

--
Eric Schnoebelen                [EMAIL PROTECTED]               
http://www.cirr.com
        Try to relax and enjoy the crisis.  -Ashleigh Brilliant
From [EMAIL PROTECTED]  Mon Nov  7 18:25:37 2005
From: [EMAIL PROTECTED] (Peter Berry)
Date: Mon Nov  7 18:26:01 2005
Subject: [py-transports] PyMSNt: stopping twistd
Message-ID: <[EMAIL PROTECTED]>

I've been busy building an RPM for Fedora Core 3 of 0.10.2, patching the 
wrapper script to use twistd to invoke the daemon. Now the init script I 
wrote for this used to use 'killproc PyMSNt' to stop the daemon, but now 
that twistd is used, the process is actually called twistd. So 
'/etc/init.d/pymsnt stop' no longer manages to kill PyMSNt.

Now as far as I can tell, using 'killproc twistd' in the init script will 
not work since that won't find the pid file in /usr/lib/jabber/msn (even 
if I call it twistd.pid), and even if it did it would not be a good idea 
since twistd might be running several daemons.

One possible solution to this is to put the pid file in /var/run instead 
of /usr/lib/jabber/msn (where it is atm) so that the pidofproc function 
will find it. Unfortunately the jabber user doesn't have write permission 
there, so 'su jabber -c "/usr/lib/jabber/msn/PyMSNt"' doesn't work.

Is it possible to invoke twistd as root, and have it change its uid and 
gid to jabber once it has created the pid file? Or is there some better 
way of solving the problem that my tiny brain has failed to realize?

-- 
Peter Berry, SUCS Ex-Treasurer
<[EMAIL PROTECTED]>
From [EMAIL PROTECTED]  Mon Nov  7 18:37:57 2005
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Mon Nov  7 18:37:59 2005
Subject: [py-transports] PyMSNt: stopping twistd
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

the twisted docs seem to think "kill `cat twisted.pid`" is a good-idea(tm).

what's wrong with the pid file, have you tried the full path? (i.e.
`cat /path/to/pid/file/twisted.pid`)

On 11/7/05, Peter Berry <[EMAIL PROTECTED]> wrote:
> I've been busy building an RPM for Fedora Core 3 of 0.10.2, patching the
> wrapper script to use twistd to invoke the daemon. Now the init script I
> wrote for this used to use 'killproc PyMSNt' to stop the daemon, but now
> that twistd is used, the process is actually called twistd. So
> '/etc/init.d/pymsnt stop' no longer manages to kill PyMSNt.
>
> Now as far as I can tell, using 'killproc twistd' in the init script will
> not work since that won't find the pid file in /usr/lib/jabber/msn (even
> if I call it twistd.pid), and even if it did it would not be a good idea
> since twistd might be running several daemons.
>
> One possible solution to this is to put the pid file in /var/run instead
> of /usr/lib/jabber/msn (where it is atm) so that the pidofproc function
> will find it. Unfortunately the jabber user doesn't have write permission
> there, so 'su jabber -c "/usr/lib/jabber/msn/PyMSNt"' doesn't work.
>
> Is it possible to invoke twistd as root, and have it change its uid and
> gid to jabber once it has created the pid file? Or is there some better
> way of solving the problem that my tiny brain has failed to realize?
>
> --
> Peter Berry, SUCS Ex-Treasurer
> <[EMAIL PROTECTED]>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>


--
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Mon Nov  7 19:41:45 2005
From: [EMAIL PROTECTED] (James Bunton)
Date: Mon Nov  7 19:41:50 2005
Subject: [py-transports] PyMSNt 0.10.2 released
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

You can use epoll by passing the -r option to twistd.
Have a look at the docs, there's a short section on running the 
transport with twistd, and it shows example options. The example shows 
how to run with the poll reactor.

---

James



On 08/11/2005, at 1:18 AM, Gonzalo Barrio wrote:

> James, what happened with the epoll reactor config section inside the 
> config-example.xml ? I can't find anything of epoll inside the 
> sources.
>
> Thanks,
> Gonzalo Barrio Linares.
>
>
> James Bunton wrote:
>
>> Hi all.
>>
>> PyMSNt 0.10.2 has been released. This release just has a few critical 
>> fixes, and is recommended for all users of 0.10.x
>> http://msn-transport.jabberstudio.org
>> Please remember to read through the documentation on that page. As 
>> always, feedback on the program and docs are welcome.
>>
>> Also of note is that the transport now uses SVN. The repository is 
>> available for anonymous public access at svn://delx.cjb.net/pymsnt
>>
>> In svn://delx.cjb.net/pymsnt/branches/0_11_x is some preliminary file 
>> transfer code. It works for receiving files. I'll be polishing this 
>> up so that it works with more clients, and so that you can send as 
>> well.
>>
>> If you want to track the progress of file transfer, its probably a 
>> good idea to join py-transports. Also, you're best off not checking 
>> out trunk :)
>>
>> Enjoy!
>>
>> ---
>>
>> James
>>
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>

Reply via email to