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


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

Re: "Daemonizing" an application.

Started byJean-Michel Pichavant <jeanmichel@sequans.com>
First post2013-02-27 13:35 +0100
Last post2013-02-27 13:35 +0100
Articles 1 — 1 participant

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


Contents

  Re: "Daemonizing" an application. Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-02-27 13:35 +0100

#40056 — Re: "Daemonizing" an application.

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2013-02-27 13:35 +0100
SubjectRe: "Daemonizing" an application.
Message-ID<mailman.2614.1361968564.2939.python-list@python.org>
----- Original Message -----
> Hello,
> 
> Sorry for the obscure title, but I can't make short to explain what
> I'm searching for. :)
> 
> I made an app (kind of proxy) that works without UI within it's
> process. So far, so good.
> 
> Now I need to change "live" some controls of this application,
> without stopping it.
> 
> So my app will be split in two :
> 
> * A control app (say "appctl") for a console UI
> * A daemon (or agent ?) that runs the core of the app (say "appd"),
> processing inputs and outputs
> 
> What are the best practices to do this ? Examples in a well known
> Pyhon app I could hack ? Is it possible with standard packages only
> ?
> 
> Thanks in advance fo any pointer.
> 
> --
> Gilles Lenant

Hi, 

You could use a remote protocol. This can become very easy in python. Is your daemon application written in python ?
Look For xmlrpclib if you want to communicate with client/servers that are not written in python.

If both of them are in python, then pyro would be a good choice.
http://pythonhosted.org/Pyro4/

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

[toc] | [standalone]


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


csiph-web