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


Groups > comp.lang.python > #40056

Re: "Daemonizing" an application.

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=763039e37=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.018
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'python': 0.09; 'cc:addr:python-list': 0.10; 'advance': 0.10; '(say': 0.16; 'gilles': 0.16; 'inputs': 0.16; 'outputs': 0.16; 'xmlrpclib': 0.16; 'examples': 0.18; 'hack': 0.18; '(or': 0.18; 'app': 0.19; 'written': 0.20; 'stopping': 0.22; 'title,': 0.22; 'runs': 0.22; 'cc:2**0': 0.23; 'split': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'core': 0.27; 'far,': 0.29; 'obscure': 0.29; 'pointer.': 0.29; 'protocol.': 0.29; "i'm": 0.29; '-----': 0.32; 'good.': 0.32; 'could': 0.32; 'controls': 0.33; 'hi,': 0.33; "can't": 0.34; 'thanks': 0.34; 'remote': 0.35; 'explain': 0.36; 'but': 0.36; 'url:org': 0.36; 'subject:" ': 0.36; 'thank': 0.36; 'possible': 0.37; 'two': 0.37; 'communicate': 0.37; 'store': 0.38; 'some': 0.38; 'hello,': 0.39; 'short': 0.39; 'application': 0.40; 'your': 0.60; 'easy': 0.60; 'you.': 0.61; 'received:194': 0.61; 'information': 0.63; 'agent': 0.64; 'within': 0.64; 'become': 0.65; 'person,': 0.65; 'disclose': 0.69; 'notice:': 0.71; 'privileged.': 0.72; 'medium.': 0.91; 'choice.': 0.93
X-IronPort-AV E=Sophos;i="4.84,747,1355094000"; d="scan'208";a="1228775"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Wed, 27 Feb 2013 13:35:13 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To Gilles Lenfant <gilles.lenfant@gmail.com>
In-Reply-To <3e4921b7-fde3-4de7-ab01-1c98ddf63363@googlegroups.com>
Subject Re: "Daemonizing" an application.
MIME-Version 1.0
X-Mailer Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC7 (Linux)/7.2.0_GA_2669)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2614.1361968564.2939.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361968564 news.xs4all.nl 6982 [2001:888:2000:d::a6]:56842
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40056

Show key headers only | View raw


----- 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.

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


Thread

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

csiph-web