Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread twisted-web
On Wed, Aug 18, 2010 at 04:35:29PM +0100, Phil Mayers wrote: > On 18/08/10 10:25, twisted-...@udmvt.ru wrote: > > > I think --uid option is too dangerous. > > sudo or su or setuidgid (from http://cr.yp.to/daemontools.html) is more > > appropriate for changing uids. > > In all cases? I think not.

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread Phil Mayers
On 08/18/2010 05:01 PM, exar...@twistedmatrix.com wrote: > On 03:35 pm, p.may...@imperial.ac.uk wrote: >> On 18/08/10 10:25, twisted-...@udmvt.ru wrote: >>> I think --uid option is too dangerous. >>> sudo or su or setuidgid (from http://cr.yp.to/daemontools.html) is >>> more >>> appropriate for cha

Re: [Twisted-Python] Add custom options handling to a twisted application running from twistd

2010-08-18 Thread David Cournapeau
On Wed, Aug 18, 2010 at 9:10 PM, Itamar Turner-Trauring wrote: > On Wed, 2010-08-18 at 20:28 +0900, David Cournapeau wrote: > >> I am trying to add some options handling to an existing twisted >> application, which runs as an "app" from twistd through the -y >> argument. It is not clear to me how

Re: [Twisted-Python] CentOS error installing

2010-08-18 Thread Landreville
On Wed, Aug 18, 2010 at 1:36 PM, Maarten ter Huurne wrote: > On Wednesday 18 August 2010, Landreville wrote: >> Hello, >> >> I'm running CentOS 5.5 64bit and when I tried to install twisted using >> easy_install I get this error message: >> >> Running Twisted-10.1.0/setup.py -q bdist_egg --dist-di

Re: [Twisted-Python] CentOS error installing

2010-08-18 Thread Maarten ter Huurne
On Wednesday 18 August 2010, Landreville wrote: > Hello, > > I'm running CentOS 5.5 64bit and when I tried to install twisted using > easy_install I get this error message: > > Running Twisted-10.1.0/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-tgKRDq/Twisted-10.1.0/egg-dist-tmp-wd-5Ri >

[Twisted-Python] CentOS error installing

2010-08-18 Thread Landreville
Hello, I'm running CentOS 5.5 64bit and when I tried to install twisted using easy_install I get this error message: Running Twisted-10.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tgKRDq/Twisted-10.1.0/egg-dist-tmp-wd-5Ri twisted/runner/portmap.c:10:20: error: Python.h: No such file or

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread exarkun
On 03:35 pm, p.may...@imperial.ac.uk wrote: >On 18/08/10 10:25, twisted-...@udmvt.ru wrote: >>I think --uid option is too dangerous. >>sudo or su or setuidgid (from http://cr.yp.to/daemontools.html) is >>more >>appropriate for changing uids. > >In all cases? I think not. Making the directory worl

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread Phil Mayers
On 18/08/10 10:25, twisted-...@udmvt.ru wrote: > I think --uid option is too dangerous. > sudo or su or setuidgid (from http://cr.yp.to/daemontools.html) is more > appropriate for changing uids. In all cases? I think not. > It will always be hard to design application, that opens some files or >

Re: [Twisted-Python] Add custom options handling to a twisted application running from twistd

2010-08-18 Thread Itamar Turner-Trauring
On Wed, 2010-08-18 at 20:28 +0900, David Cournapeau wrote: > I am trying to add some options handling to an existing twisted > application, which runs as an "app" from twistd through the -y > argument. It is not clear to me how to do that ? Instead of using a .tac file, write a twistd plugin: ht

[Twisted-Python] Add custom options handling to a twisted application running from twistd

2010-08-18 Thread David Cournapeau
Hi, I am trying to add some options handling to an existing twisted application, which runs as an "app" from twistd through the -y argument. It is not clear to me how to do that ? cheers, David ___ Twisted-Python mailing list Twisted-Python@twistedmat

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread twisted-web
On Tue, Aug 17, 2010 at 05:40:34PM -, exar...@twistedmatrix.com wrote: > On 11:35 am, zoran.bosn...@sloveniacontrol.si wrote: > >I am running twisted application from /etc/init/myapp.conf by exec > >statement like this: > >exec /usr/bin/twistd --uid= --gid= --logfile=/var/log/dir/file > > > >Th

Re: [Twisted-Python] twistd --uid and --logfile

2010-08-18 Thread twisted-web
On Tue, Aug 17, 2010 at 01:35:41PM +0200, Zoran Bosnjak wrote: > I am running twisted application from /etc/init/myapp.conf by exec > statement like this: > exec /usr/bin/twistd --uid= --gid= --logfile=/var/log/dir/file > > The problem is when log file is first created under /var/log/dir (dir is >