Re: Daemon strategy

2016-02-06 Thread Michael Torrie
On 02/06/2016 09:04 AM, paul.hermeneu...@gmail.com wrote: > On Fri, Feb 5, 2016 at 4:10 PM, Ben Finney wrote: >> paul.hermeneu...@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. >>>

Re: Daemon strategy

2016-02-06 Thread Ben Finney
Ian Kelly writes: > On Sat, Feb 6, 2016 at 1:15 AM, Ben Finney wrote: > > You're implying that the PyPI trove category “Operating System :: POSIX” > > includes MS Windows? Or that it excludes Linux and FreeBSD? Or that it's > > meaningless? > > At least it's not very clear as to what OSes are su

Re: Daemon strategy

2016-02-06 Thread Ian Kelly
On Sat, Feb 6, 2016 at 1:15 AM, Ben Finney wrote: > Ian Kelly writes: > >> Depends on the version: >> https://en.wikipedia.org/wiki/Windows_Services_for_UNIX >> https://en.wikipedia.org/wiki/POSIX#POSIX_for_Windows >> >> Linux and FreeBSD are also not POSIX-certified, even though they >> mostly

Re: Daemon strategy

2016-02-06 Thread paul . hermeneutic
> As Ben already said .. either deploy to Unix systems or use > subprocess.Popen and detach the process: > > from subprocess import Popenfrom win32process import DETACHED_PROCESS > Popen(["YOURPROCESS"],creationflags=DETACHED_PROCESS,shell=True) This sounds promising. What are the common methods t

Re: Daemon strategy

2016-02-06 Thread paul . hermeneutic
On Fri, Feb 5, 2016 at 4:10 PM, Ben Finney wrote: > paul.hermeneu...@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 O

Re: Daemon strategy

2016-02-06 Thread Timo Furrer
As Ben already said .. either deploy to Unix systems or use subprocess.Popen and detach the process: from subprocess import Popenfrom win32process import DETACHED_PROCESS Popen(["YOURPROCESS"],creationflags=DETACHED_PROCESS,shell=True) On Fri, Feb 5, 2016 at 10:52 AM, Ben Finney wrote: > paul

Re: Daemon strategy

2016-02-06 Thread Ben Finney
Ian Kelly writes: > Depends on the version: > https://en.wikipedia.org/wiki/Windows_Services_for_UNIX > https://en.wikipedia.org/wiki/POSIX#POSIX_for_Windows > > Linux and FreeBSD are also not POSIX-certified, even though they > mostly comply. Should pip warn about those also? You're implying t

Re: Daemon strategy

2016-02-05 Thread Ian Kelly
On Fri, Feb 5, 2016 at 4:10 PM, Ben Finney wrote: > Sorry to learn that. The PyPI metadata for ‘python-daemon’ > https://pypi.python.org/pypi/python-daemon/> explicitly declares > the supported OS limited to “Operating System :: POSIX”, which MS > Windows is not compatible with. Depends on the ve

Re: Daemon strategy

2016-02-05 Thread Ben Finney
paul.hermeneu...@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 responsibl

Re: Daemon strategy

2016-02-05 Thread paul . hermeneutic
On Fri, Feb 5, 2016 at 11:52 AM, Ben Finney wrote: > paul.hermeneu...@gmail.com writes: > >> It appears that python-deamon would be exactly what I need. Alas, >> appears not to run on Windows. If I am wrong about that, please tell >> me. > > You're correct that ‘python-daemon’ uses Unix facilities

Re: Daemon strategy

2016-02-05 Thread Nathan Hilterbrand
On 02/05/2016 01:39 PM, paul.hermeneu...@gmail.com wrote: It appears that python-deamon would be exactly what I need. Alas, appears not to run on Windows. If I am wrong about that, please tell me. To what tools should I turn? I am not eager to produce a "service" on Windows unless it cannot b

Re: Daemon strategy

2016-02-05 Thread Ray Cote
We’ve recently stopped building Windows services (Python or any other type) and started using the NSSM service manager. Takes a normal Windows application and runs it as a service. The NSSM service manager provides great command-line support for installing, configuring, and controlling Windows serv

Re: Daemon strategy

2016-02-05 Thread Ben Finney
paul.hermeneu...@gmail.com writes: > It appears that python-deamon would be exactly what I need. Alas, > appears not to run on Windows. If I am wrong about that, please tell > me. You're correct that ‘python-daemon’ uses Unix facilities to create a well-behaved Unix daemon process. Since MS Wind

Daemon strategy

2016-02-05 Thread paul . hermeneutic
It appears that python-deamon would be exactly what I need. Alas, appears not to run on Windows. If I am wrong about that, please tell me. To what tools should I turn? I am not eager to produce a "service" on Windows unless it cannot be avoided. -- https://mail.python.org/mailman/listinfo/python