Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102607

Re: Daemon strategy

From Michael Torrie <torriem@gmail.com>
Newsgroups comp.lang.python
Subject Re: Daemon strategy
Date 2016-02-06 21:22 -0700
Message-ID <mailman.59.1454819465.2317.python-list@python.org> (permalink)
References <CAJ4+4apHhfYBw33xVsG_dFbf9iEGfiiimh0mHCq=LGo0d96yWg@mail.gmail.com> <85d1sb9eh7.fsf@benfinney.id.au> <CAJ4+4aqwswjy4utNAZdGJPH1it2KZJF757N_GdB_xjyX_wt_gQ@mail.gmail.com> <858u2yah3d.fsf@benfinney.id.au> <CAJ4+4apUSEzi8Wm9GnEUSrNaALJ27Qb9S1ti1wWAM=CPDJfr3g@mail.gmail.com>

Show all headers | View raw


On 02/06/2016 09:04 AM, paul.hermeneutic@gmail.com wrote:
> On Fri, Feb 5, 2016 at 4:10 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
>> paul.hermeneutic@gmail.com writes:
>>
>>> On Fri, Feb 5, 2016 at 11:52 AM, Ben Finney <ben+python@benfinney.id.au> wrote:
>>>> Since MS Windows lacks those facilities, ‘python-daemon’ can't use
>>>> them.
>>>
>>> As you might imagine, I am not always able to specify which OS is
>>> deployed. That does not mean that I am not responsible for getting the
>>> work done. Perhaps you will tell me that what I want is not a daemon.
>>
>> I'm telling you none of those. What I'm telling you is MS Windows does
>> not support what is needed to make a Unix daemon.
>>
>> You may need to re-visit the requirements and negotiate something
>> different — a different deployment platform, or something which MS
>> Windows can do which is less than a proper Unix daemon.
> 
> I fully understand that Windows is not a proper UNIX. It might be that
> UNIX is not in each and every aspect a proper Windows.
> 
> If it is possible, I would like to create one tool to do this rather
> than multiple. Is there anything in Python that would help to
> accomplish this goal?

The fairly standard python-win32 package certainly allows you to make a
proper win32 service.  It's not part of the standard library, but you
could ship it with your package.

http://ryrobes.com/python/running-python-scripts-as-a-windows-service/

It's just not practical to have one tool that does such an OS-dependent
thing.  But it's not that hard to have specific code for Windows.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Daemon strategy Michael Torrie <torriem@gmail.com> - 2016-02-06 21:22 -0700

csiph-web