Re: [Twisted-Python] twistd and init.d

2010-04-22 Thread Kevin Horn
Thanks for reporting back to the list, Don. I'm sure this info will help someone down the road (maybe even me!) Kevin Horn On Thu, Apr 22, 2010 at 9:11 AM, Don Schoeman wrote: > Hi guys, > > I have finally managed to solve this problem. It turns out (as predicted) > that this is not a twistd

Re: [Twisted-Python] twistd and init.d

2010-04-22 Thread Don Schoeman
Hi guys, I have finally managed to solve this problem. It turns out (as predicted) that this is not a twistd problem after all. This particular Ubuntu server has an encrypted home directory (enabled through eCryptfs). This means that during the boot process the particular home directory from w

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Don Schoeman
Hi Jason, Unfortunately I still have the same problem. However, I now realise that it might be a privileges issue of some kind. Being fairly new at linux  this may take days to figure out; can you perhaps remember if you enabled your rc script using the command update-rc.d? I used it in the fo

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Don Schoeman
You are correct Jean-Paul, it doesn't matter what script I run using twistd, (i.e. twistd -y nothingwillrun.py) it doesn't do anything anyway if executed during the boot sequence. So I am going to have to start looking elsewhere. A nice little error in the system logs would have been nice thoug

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Don Schoeman
Thank you Jason, I am looking at it right now. Regards, Don Jason J. W. Williams wrote: Hi Don, Here's the init.d we use for Twisted on Ubuntu. Sets the full path to Twistd: http://gist.github.com/373978 -J On Wed, Apr 21, 2010 at 5:38 AM, Don Schoeman wrote: Hi guys, My a

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Itamar Turner-Trauring
> I think Itamar was suggesting that you use "/bin/bash -x" as your init > script interpreter and examine that output. Actually, I typoed, and meant /usr/bin/strace, but that's a good idea too :) ___ Twisted-Python mailing list Twisted-Python@twistedma

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Jason J. W. Williams
Hi Don, Here's the init.d we use for Twisted on Ubuntu. Sets the full path to Twistd: http://gist.github.com/373978 -J On Wed, Apr 21, 2010 at 5:38 AM, Don Schoeman wrote: > Hi guys, > > My application is being executed using twistd as per documentation. All is > working fine but I need to hav

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread exarkun
I think Itamar was suggesting that you use "/bin/bash -x" as your init script interpreter and examine that output. It may also make sense to find someone who knows about writing init scripts for your platform and ask them some questions. It seems like this is an issue with the environment arou

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Don Schoeman
Using the --syslog switch it still produced no logs whatsoever. I took it a step further and tried the --spew switch which should dump huge amounts of log data (I am piping the output to a file) - that produces nothing either. To be honest I think twistd starts up and crashes solidly without be

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Itamar Turner-Trauring
On Wed, 2010-04-21 at 15:37 +0200, Don Schoeman wrote: > I still get the same results (or non-results) unfortunately. I have > tried the following options: > > 1) Tried running twistd by giving the fully qualified > path: /usr/bin/twistd. > 2) Tried running the .tac file together with the -g twist

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Don Schoeman
ing is the twistd will have a default log twistd.log.   Thanks, Garyc --- On Wed, 4/21/10, Don Schoeman wrote: From: Don Schoeman Subject: Re: [Twisted-Python] twistd and init.d To: "Twisted general discussion" Date: Wednesday, Apr

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread gary clark
My understanding is the twistd will have a default log twistd.log.   Thanks, Garyc --- On Wed, 4/21/10, Don Schoeman wrote: From: Don Schoeman Subject: Re: [Twisted-Python] twistd and init.d To: "Twisted general discussion" Date: Wednesday, April 21, 2010, 7:54 AM Sorry, I mea

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Don Schoeman
Sorry, I mean't to say I will use the full path to twistd (i.e. /usr/bin/twistd) and see if that works. Don Schoeman wrote: Thanks for the tips guys, Maartin, I have a feeling that you may be correct. I'm going to see if I can't set the python path within the script. Tim, the only

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Don Schoeman
Thanks for the tips guys, Maartin, I have a feeling that you may be correct. I'm going to see if I can't set the python path within the script. Tim, the only reason I can see anything in  /var/logs/messages is because I use the "logger" tool to log those messages directly from the bash shell

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread gary clark
I have written an init.d script thats starts and stops a twistd. You need to create a .tac file and create a daemon. A wee bit more tricky but you can start twistd fine. Thanks, Garyc --- On Wed, 4/21/10, Tim Allen wrote: > From: Tim Allen > Subject: Re: [Twisted-Python] twistd and

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Tim Allen
On Wed, Apr 21, 2010 at 01:38:09PM +0200, Don Schoeman wrote: >This works fine when running /etc/init.d/ghserver start and >/etc/init.d/ghserver stop. The script also run when I boot since the >logger actually logs the "GHServer: Starting" text to the >/var/log/messages file. Howeve

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Maarten ter Huurne
On Wednesday 21 April 2010, Don Schoeman wrote: > This works fine when running /etc/init.d/ghserver start and > /etc/init.d/ghserver stop. The script also run when I boot since the > logger actually logs the "GHServer: Starting" text to the > /var/log/messages file. However, my service actually d