Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Michael Torrie Newsgroups: comp.lang.python Subject: Re: Daemon strategy Date: Sat, 6 Feb 2016 21:22:23 -0700 Lines: 34 Message-ID: References: <85d1sb9eh7.fsf@benfinney.id.au> <858u2yah3d.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de CJgXly3lwAay8NPPVL/E+QKv/zPHCitk4BcGvXZ65T5g== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'win32': 0.03; '\xe2\x80\x94': 0.09; 'python': 0.10; '2016': 0.16; '8bit%:32': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:strategy': 0.16; 'wrote:': 0.16; 'deployment': 0.18; 'library,': 0.18; '>>>': 0.20; 'windows': 0.20; 'fairly': 0.22; 'aspect': 0.22; 'platform,': 0.22; 'am,': 0.23; 'feb': 0.23; 'unix': 0.24; 'header :In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'fri,': 0.27; 'package.': 0.27; 'specify': 0.27; 'allows': 0.30; "i'm": 0.30; 'code': 0.30; 'certainly': 0.30; "can't": 0.32; 'getting': 0.33; 'url:python': 0.33; 'windows.': 0.33; 'message-id:@gmail.com': 0.34; 'requirements': 0.35; 'could': 0.35; 'possible,': 0.35; 'something': 0.35; 'but': 0.36; 'needed': 0.36; 'there': 0.36; 'tool': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'responsible': 0.37; 'received:org': 0.37; 'done.': 0.37; 'anything': 0.38; 'mean': 0.38; 'does': 0.39; 'received:192': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'telling': 0.61; 'email addr:gmail.com': 0.62; 'service.': 0.63; 'different': 0.63; 'skip:\xe2 10': 0.70; 'imagine,': 0.84; 'lacks': 0.84 X-Virus-Scanned: amavisd-new at torriefamily.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:102607 On 02/06/2016 09:04 AM, paul.hermeneutic@gmail.com wrote: > On Fri, Feb 5, 2016 at 4:10 PM, Ben Finney wrote: >> paul.hermeneutic@gmail.com writes: >> >>> On Fri, Feb 5, 2016 at 11:52 AM, Ben Finney 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.