Re: Making a non-root daemon process

2007-03-24 Thread Ben Finney
Ben Finney [EMAIL PROTECTED] writes: Hmm. I typed the example program in as a simplified version of what I'm doing; but didn't actually *run* it. When I do run it, I get no exception, as you say. Now I'll have to find out what significant difference there is between my failing code and this

Re: Making a non-root daemon process

2007-03-23 Thread Leo Kislov
On Mar 22, 11:19 pm, Ben Finney [EMAIL PROTECTED] wrote: Howdy all, For making a Python program calve off an independent daemon process of itself, I found Carl J. Schroeder's recipe in the ASPN Python Cookbook. URL:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 This is a

Re: Making a non-root daemon process

2007-03-23 Thread Ben Finney
Leo Kislov [EMAIL PROTECTED] writes: On Mar 22, 11:19 pm, Ben Finney [EMAIL PROTECTED] wrote: The problem I'm having is that 'os.setsid()' fails with 'OSError: [Errno 1] Operation not permitted' unless I run the program as the root user. This isn't a program that I want necessarily running

Making a non-root daemon process

2007-03-22 Thread Ben Finney
Howdy all, For making a Python program calve off an independent daemon process of itself, I found Carl J. Schroeder's recipe in the ASPN Python Cookbook. URL:http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/278731 This is a thorough approach, and I'm cribbing a simpler process from this