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


Groups > comp.lang.python > #102580 > unrolled thread

Re: Daemon strategy

Started byTimo Furrer <tuxtimo@gmail.com>
First post2016-02-05 10:58 -0800
Last post2016-02-05 10:58 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Daemon strategy Timo Furrer <tuxtimo@gmail.com> - 2016-02-05 10:58 -0800

#102580 — Re: Daemon strategy

FromTimo Furrer <tuxtimo@gmail.com>
Date2016-02-05 10:58 -0800
SubjectRe: Daemon strategy
Message-ID<mailman.37.1454755053.2317.python-list@python.org>
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 <ben+python@benfinney.id.au>
wrote:

> paul.hermeneutic@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 Windows lacks those facilities, ‘python-daemon’ can't use them.
>
> > To what tools should I turn?
>
> If what you need – the support to create a Unix daemon process – is
> available only on Unix by definition, it seems you'll need to deploy to
> Unix.
>
> > I am not eager to produce a "service" on Windows unless it cannot be
> > avoided.
>
> Agreed :-)
>
> --
>  \     “Wrinkles should merely indicate where smiles have been.” —Mark |
>   `\                                    Twain, _Following the Equator_ |
> _o__)                                                                  |
> Ben Finney
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>



-- 
*Timo Furrer*

https://github.com/timofurrer
tuxtimo@gmail.com

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web