Re: python-daemon and PID files

2017-03-06 Thread Ben Finney
Ethan Furman writes: > On 03/04/2017 09:09 PM, Ian Pilcher wrote: > > > Is it possible to get python-daemon to create "systemd style" PID > > file? Short answer: No, that's the job of whatever ‘pidfile’ object you provide. Medium answer: Yes, by implementing

Re: python-daemon and PID files

2017-03-05 Thread Ian Pilcher
On 03/04/2017 11:14 PM, Chris Angelico wrote: Why do you need a pidfile? When I get systemd to start a process, I just have it not fork. Much easier. Forget about python-daemon - just run your script in the simple and straight-forward way. Because forking daemons was good enough for my

Re: python-daemon and PID files

2017-03-04 Thread Ethan Furman
On 03/04/2017 09:09 PM, Ian Pilcher wrote: Is it possible to get python-daemon to create "systemd style" PID file? I.e., systemd wants a daemon to write a file with a specific name that *contains* the PID of the child process. python-daemon, OTOH, seems to use its pidfile parameter

Re: python-daemon and PID files

2017-03-04 Thread Chris Angelico
On Sun, Mar 5, 2017 at 4:09 PM, Ian Pilcher wrote: > Is it possible to get python-daemon to create "systemd style" PID file? > > I.e., systemd wants a daemon to write a file with a specific name that > *contains* the PID of the child process. python-daemon, OTOH, seem

python-daemon and PID files

2017-03-04 Thread Ian Pilcher
Is it possible to get python-daemon to create "systemd style" PID file? I.e., systemd wants a daemon to write a file with a specific name that *contains* the PID of the child process. python-daemon, OTOH, seems to use its pidfile parameter as more of a lock file. Currently, I'm

[RELEASE] ‘python-daemon’ version 2.1.2 released

2016-10-26 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.1.2 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. Significant changes since the previous version == Additi

[RELEASE] ‘python-daemon’ version 2.1.1 released

2016-01-30 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.1.1 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. Significant changes since the previous version == Version 2.

[RELEASE] ‘python-daemon’ version 2.0.6 released

2015-08-30 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0.6 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. Starting with this version, the uploads to PyPI are signed with my GnuPG key, so the downloaded file can

[RELEASE] ‘python-daemon’ version 2.0.5 released

2015-02-01 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0.5 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

[RELEASE] ‘python-daemon’ version 2.0.4 released

2015-01-22 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0.4 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

[RELEASE] ‘python-daemon’ version 2.0.3 released

2015-01-13 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0.3 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

[RELEASE] ‘python-daemon’ version 2.0.2 released

2015-01-12 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0.2 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

[RELEASE] ‘python-daemon’ version 2.0.1 released

2015-01-10 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0.1 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

[RELEASE] ‘python-daemon’ version 2.0 released

2015-01-10 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 2.0 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

[RELEASE] ‘python-daemon’ version 1.5.7 released

2014-12-19 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 1.5.7 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

[RELEASE] ‘python-daemon’ version 1.5.6 released

2014-12-09 Thread Ben Finney
Howdy all, I am pleased to announce the release of version 1.5.6 of the ‘python-daemon’ library. The current release is always available at https://pypi.python.org/pypi/python-daemon/>. The project's forums and VCS are hosted at Alioth https://alioth.debian.org/projects/pytho

Re: Struggling with python-daemon and subprocess module to work together

2014-10-21 Thread Ben Finney
Praveen Kumar writes: > Previously this basic server is executed using *openvt* but I thought > it would be nice to have a daemon process for it and used > python-daemon. An important difference is that a daemon process has no controlling terminal, by definition. > Issue I am fac

Re: Struggling with python-daemon and subprocess module to work together

2014-10-21 Thread Dan Stromberg
. Previously this basic server is executed using *openvt* but > I thought it would be nice to have a daemon process for it and used > python-daemon. > > Issue I am facing is after some time server will stop sending data to > client which suppose to happen in #120 and get error message &

Struggling with python-daemon and subprocess module to work together

2014-10-21 Thread Praveen Kumar
ht it would be nice to have a daemon process for it and used python-daemon. Issue I am facing is after some time server will stop sending data to client which suppose to happen in #120 and get error message "Cannot run interactive console without a controlling TTY" . I am not able to figu

Re: python-daemon for Python v3

2014-08-22 Thread Terry Reedy
On 8/22/2014 9:09 PM, Y@i$el wrote: A mi si me ha dado problemas. No tengo forma de decirle que se ejecute como usuario www-data y cuando lo intento deja de funcionar abruptamente. I can almost, but not really understand and translate the question. Possiblemente debe visitar un grupo in espan

Re: python-daemon for Python v3

2014-08-22 Thread Y@i$el
A mi si me ha dado problemas. No tengo forma de decirle que se ejecute como usuario www-data y cuando lo intento deja de funcionar abruptamente. Saludos. -- https://mail.python.org/mailman/listinfo/python-list

Re: python-daemon for Python v3

2014-06-26 Thread ryuanerin
2014년 1월 19일 일요일 오후 7시 30분 27초 UTC+9, Asaf Las 님의 말: > Hi Community > > > > Is there ported to Python v3 python-daemon package? > > > > https://pypi.python.org/pypi/python-daemon/ > > > > i am afraid it is not as simple as correction of relat

Re: python-daemon interaction with multiprocessing (secure-smtpd)

2014-05-07 Thread Antoon Pardon
op 07-05-14 21:11, Grant Edwards schreef: > > Mainly, I'm just trying to figure out the right way to terminate the > server from an /etc/init script. > As far as I understand you have to make sure that your daemon is a proces group leader. All the children it will fork will then belong to its pro

Re: python-daemon interaction with multiprocessing (secure-smtpd)

2014-05-07 Thread Grant Edwards
On 2014-05-07, Grant Edwards wrote: > With Python 2.7.5, I'm trying to use the python-daemon 1.6 and its > DaemonRunner helper with the seucre-smtpd 1.1.9 which appears to use > multiprocessing and a process pool under the covers. There seem to be > a couple process issues: >

Re: python-daemon interaction with multiprocessing (secure-smtpd)

2014-05-07 Thread Grant Edwards
On 2014-05-07, Ben Finney wrote: > Grant Edwards writes: > >> On 2014-05-07, Grant Edwards wrote: >> > How do you terminate a Python program that's using multiprocessing? >> >> It looks like you have to kill all the threads individually. :/ > > As I understand it, the ‘multiprocessing’ modu

Re: python-daemon interaction with multiprocessing (secure-smtpd)

2014-05-07 Thread Ben Finney
Grant Edwards writes: > On 2014-05-07, Grant Edwards wrote: > > How do you terminate a Python program that's using multiprocessing? > > It looks like you have to kill all the threads individually. :/ As I understand it, the ‘multiprocessing’ module https://docs.python.org/3/library/multipr

Re: python-daemon interaction with multiprocessing (secure-smtpd)

2014-05-07 Thread Grant Edwards
On 2014-05-07, Grant Edwards wrote: > With Python 2.7.5, I'm trying to use the python-daemon 1.6 and its > DaemonRunner helper with the seucre-smtpd 1.1.9 which appears to use > multiprocessing and a process pool under the covers. There seem to be > a couple process issues: >

python-daemon interaction with multiprocessing (secure-smtpd)

2014-05-07 Thread Grant Edwards
With Python 2.7.5, I'm trying to use the python-daemon 1.6 and its DaemonRunner helper with the seucre-smtpd 1.1.9 which appears to use multiprocessing and a process pool under the covers. There seem to be a couple process issues: 1) The pid file created by DaemonRunner dissappears. This

Re: python-daemon for Python v3

2014-01-19 Thread Asaf Las
On Monday, January 20, 2014 8:19:04 AM UTC+2, larry@gmail.com wrote: > Nope, no problems at all. Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: python-daemon for Python v3

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 9:57 PM, Asaf Las wrote: > On Sunday, January 19, 2014 9:30:21 PM UTC+2, larry@gmail.com wrote: >> On Sun, Jan 19, 2014 at 3:30 AM, Asaf Las wrote: >> I use this technique for demonizing: >> http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ >>

Re: python-daemon for Python v3

2014-01-19 Thread Asaf Las
On Sunday, January 19, 2014 9:30:21 PM UTC+2, larry@gmail.com wrote: > On Sun, Jan 19, 2014 at 3:30 AM, Asaf Las wrote: > I use this technique for demonizing: > http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ > And has been ported to 3: > http://www.jejik.com/files/

Re: python-daemon for Python v3

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 3:30 AM, Asaf Las wrote: > Hi Community > > Is there ported to Python v3 python-daemon package? > > https://pypi.python.org/pypi/python-daemon/ > > i am afraid it is not as simple as correction of relative path input > feature and except clauses

Re: python-daemon for Python v3

2014-01-19 Thread Asaf Las
On Sunday, January 19, 2014 12:41:31 PM UTC+2, Ben Finney wrote: > Have a read through the archives for the ‘python-daemon-devel’ > discussion forum > http://lists.alioth.debian.org/mailman/listinfo/python-daemon-devel>, > where we have had discussions about porting the library to

Re: python-daemon for Python v3

2014-01-19 Thread Ben Finney
Asaf Las writes: > Is there ported to Python v3 python-daemon package? > > https://pypi.python.org/pypi/python-daemon/ Have a read through the archives for the ‘python-daemon-devel’ discussion forum http://lists.alioth.debian.org/mailman/listinfo/python-daemon-devel>, where

python-daemon for Python v3

2014-01-19 Thread Asaf Las
Hi Community Is there ported to Python v3 python-daemon package? https://pypi.python.org/pypi/python-daemon/ i am afraid it is not as simple as correction of relative path input feature and except clauses in mentioned package. Thanks Asaf -- https://mail.python.org/mailman/listinfo/python

Python 3 and ‘python-daemon’ (was: [RELEASED] Python 2.7.5)

2013-06-05 Thread Ben Finney
Joshua Landau writes: > Don't take this list too seriously - some of those do have fully > working and stable Python 3 packages that just aren't in pip, like > python-daemon. That's news to me, as the package maintainer. There's no official ‘python-daemon’ relea

Re: python-daemon

2012-12-17 Thread Steven D'Aprano
On Sun, 16 Dec 2012 08:59:46 -0800, rurpy wrote: > Or you could repost from other than GG if you don't mind being a tool of > someone else's political agenda. We're all tools of someone's political agenda. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: python-daemon

2012-12-17 Thread rurpy
On Monday, December 17, 2012 12:33:52 AM UTC-7, Chris Angelico wrote: > On Mon, Dec 17, 2012 at 6:25 PM, wrote: > > No, that's not what you were "just" informing people of... > > you were also informing us that we are "twits" for finding > > Google Groups fits our needs better than some other cli

Re: python-daemon

2012-12-16 Thread Chris Angelico
On Mon, Dec 17, 2012 at 6:25 PM, wrote: > No, that's not what you were "just" informing people of... > you were also informing us that we are "twits" for finding > Google Groups fits our needs better than some other clients. I didn't say that. The first twit filter I met was when my dad put *his

Re: python-daemon

2012-12-16 Thread rurpy
On 12/16/2012 11:16 PM, Chris Angelico wrote: > On Mon, Dec 17, 2012 at 9:18 AM, wrote: >> On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote: >>>[...] >>> If your post is swallowed by someone's twit filter, that probably >>> means that you're doing something twittish. Switching

Re: python-daemon

2012-12-16 Thread Chris Angelico
On Mon, Dec 17, 2012 at 9:18 AM, wrote: > On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote: >>[...] >> If your post is swallowed by someone's twit filter, that probably >> means that you're doing something twittish. Switching to direct mail >> isn't going to win you any friends

Re: python-daemon

2012-12-16 Thread rurpy
On Sunday, December 16, 2012 1:25:51 PM UTC-7, Chris Angelico wrote: >[...] > If your post is swallowed by someone's twit filter, that probably > means that you're doing something twittish. Switching to direct mail > isn't going to win you any friends :) Switching your newsgroup client, > however,

Re: python-daemon

2012-12-16 Thread Chris Angelico
On Mon, Dec 17, 2012 at 3:59 AM, wrote: > On 12/16/2012 08:26 AM, n8fel...@gmail.com wrote: >> Hello all. Got a question for anyone out there that is willing to >> help. Looking to make a Python Daemon, Google searches lead me to >> http://pypi.python.org/pypi/python-dae

Re: python-daemon

2012-12-16 Thread rurpy
On 12/16/2012 08:26 AM, n8fel...@gmail.com wrote: > Hello all. Got a question for anyone out there that is willing to > help. Looking to make a Python Daemon, Google searches lead me to > http://pypi.python.org/pypi/python-daemon. My question is 2 part. 1) > pip install python-daem

python-daemon

2012-12-16 Thread n8felton
Hello all. Got a question for anyone out there that is willing to help. Looking to make a Python Daemon, Google searches lead me to http://pypi.python.org/pypi/python-daemon. My question is 2 part. 1) pip install python-daemon downloads version 1.6, but the site states that 1.5.5 is the latest

Re: creating python daemon ?

2010-09-26 Thread vineet daniel
On Sep 26, 2:20 pm, Stefan Schwarzer wrote: > Hi Daniel, > > On 2010-09-23 07:30, vineet daniel wrote: > > > > > On Sep 22, 2:20 pm, de...@web.de (Diez B. Roggisch) wrote: > >> vineet daniel writes: > >>> On Sep 21, 9:47 pm, de...@web.de (Diez B. Roggisch) wrote: > vineet daniel writes: > >

Re: creating python daemon ?

2010-09-26 Thread Brian Jones
I don't believe you need to be doing all kinds of acrobatics with apache and your python process. On Linux and Unix machines, you can tell the stock syslog daemon that messages sent to a certain syslog facility are to be sent to a named pipe. So, if you tell syslog that, say, the local6 facility sh

Re: creating python daemon ?

2010-09-26 Thread Stefan Schwarzer
Hi Daniel, On 2010-09-23 07:30, vineet daniel wrote: > On Sep 22, 2:20 pm, de...@web.de (Diez B. Roggisch) wrote: >> vineet daniel writes: >>> On Sep 21, 9:47 pm, de...@web.de (Diez B. Roggisch) wrote: vineet daniel writes: > code that I am using is as follows : >> > #! /usr/bin/env

Re: creating python daemon ?

2010-09-22 Thread vineet daniel
action. Like > > >> There is a daemonization recipe on active-state, which works nicely for > >> me. > > >>http://code.activestate.com/recipes/278731-creating-a-daemon-the-pyth... > > >> Diez > > > Hi Diez > > > Thanks for pointing tha

Re: creating python daemon ?

2010-09-22 Thread Diez B. Roggisch
t;> >> The above code looks errornous - you don't check for the return-value of >> PID & take appropriate action. Like >> >> There is a daemonization recipe on active-state, which works nicely for >> me. >> >> http://code.activestate.com/rec

[OT] apache customlog (was Re: creating python daemon ?)

2010-09-21 Thread Kushal Kumaran
On 9/21/10, vineet daniel wrote: > Hi > > I have succesfully created daemon with python script and as next step > I am trying to give input to that python script daemon from Apache > Logshere I have got stuck and I have even checked IRC python > channel for solution. Apache is able to call the

Re: creating python daemon ?

2010-09-21 Thread Ben Finney
vineet daniel writes: > I'd appreciate if anybody could share the code that they used for > daemon or used with Apache CustomLog directive. I don't know about using Apache's CustomLog, but the ‘python-daemon’ library is specifically intended for creating a well-beh

Re: creating python daemon ?

2010-09-21 Thread vineet daniel
s a daemonization recipe on active-state, which works nicely for > me. > > http://code.activestate.com/recipes/278731-creating-a-daemon-the-pyth... > > Diez Hi Diez Thanks for pointing that out. Ever tried giving input to such python daemons from a dynamic source like Apache logs which get generated in real time. I want apache to directly write to this python daemon which in turn will process the logs the way I want. Any help will help me immensely. -- http://mail.python.org/mailman/listinfo/python-list

Re: creating python daemon ?

2010-09-21 Thread Diez B. Roggisch
vineet daniel writes: > Hi > > I have succesfully created daemon with python script and as next step > I am trying to give input to that python script daemon from Apache > Logshere I have got stuck and I have even checked IRC python > channel for solution. Apache is able to call the file but

creating python daemon ?

2010-09-21 Thread vineet daniel
Hi I have succesfully created daemon with python script and as next step I am trying to give input to that python script daemon from Apache Logshere I have got stuck and I have even checked IRC python channel for solution. Apache is able to call the file but fails to execute it properly and I

Re: Python daemonisation with python-daemon

2010-05-01 Thread Ben Finney
Thomas Courbon writes: > I would like to turn my server script into a Linux/Unix daemon > (launched at boot time by init, dunno if that matter) using the nice > python-daemon package by Ben Finley et al I resemble that name :-) > This package comes with a class DaemonRunner that

Python daemonisation with python-daemon

2010-04-30 Thread Thomas Courbon
nice python-daemon package by Ben Finley et al (http://pypi.python.org/pypi/ python-daemon/). This package comes with a class DaemonRunner that seems to fit almost exactly my need but I still have some interrogation. My main class looks like the following: class SIGTERM_Received(Exception): pass

python-daemon PID file

2010-03-19 Thread Kamil Wasilewski
Hi all, Im trying to get a daemon up and running but have been tripping on every stone along the way, this last one however i cant manage to get by. versions: Python 2.5.2 python-daemon-1.5.5 Debian Linux 2.6.26-2-686 Some of the problems ive run into: import daemon with daemon.DaemonContext

New user documentation for ‘python-daemon ’ (was: daemon.DaemonContext and logging)

2009-12-10 Thread Ben Finney
Sean DiZazzo writes: > On Dec 10, 5:37 pm, Sean DiZazzo wrote: > > I'm finally getting around to trying out the python-daemon module > > and have hit a wall.  I'm trying to set up logging inside of the > > "with daemon.DaemonContext" block.  But when I

Re: python-daemon and upstart

2009-11-14 Thread Paul Rudin
Paul Rudin writes: > > So I would have expected it to be necessary in this case. Maybe this is > more an upstart issue than a python-daemon one - not sure. Aha - so I discover that if detach_process is not explicitly passed to the DaemonContext initialiser it tries to guess w

Re: python-daemon and upstart

2009-11-14 Thread Paul Rudin
xpected it to be necessary in this case. Maybe this is more an upstart issue than a python-daemon one - not sure. -- http://mail.python.org/mailman/listinfo/python-list

Re: python-daemon and upstart

2009-11-14 Thread Paul Rudin
Ben Finney writes: > Paul Rudin writes: > >> I'm experimenting with the daemon module >> <http://pypi.python.org/pypi/python-daemon/> and upstart >> <http://upstart.ubuntu.com/>. > > First: Thank you for using ‘python-daemon’; it's getting

python-daemon and upstart

2009-11-14 Thread Ben Finney
Paul Rudin writes: > I'm experimenting with the daemon module > <http://pypi.python.org/pypi/python-daemon/> and upstart > <http://upstart.ubuntu.com/>. First: Thank you for using ‘python-daemon’; it's getting more widespread use all the time, which is really he

[ANN] python-daemon 1.5.2

2009-10-24 Thread Ben Finney
Howdy all, I'm pleased to announce the release of version 1.5.2 of ‘python-daemon’. What is python-daemon = The ‘python-daemon’ library is the reference implementation of PEP 3143 http://www.python.org/dev/peps/pep-3143/>, “Standard daemon process library”. Th

[ANN] python-daemon 1.5.1

2009-09-26 Thread Ben Finney
Howdy all, I'm pleased to announce the release of version 1.5.1 of ‘python-daemon’. What is python-daemon = The ‘python-daemon’ library is the reference implementation of PEP 3143 http://www.python.org/dev/peps/pep-3143/>, “Standard daemon process library”. Th

Re: [ANN] python-daemon 1.4.8

2009-09-17 Thread Ben Finney
Ben Finney writes: > The ‘python-daemon’ library is the reference implementation of PEP > 3143 http://www.python.org/dev/peps/pep-3143/>, “Standard daemon > process library”. > > The source distribution is available via the PyPI page for this > version, http://pypi.python.o

[ANN] python-daemon 1.4.8

2009-09-17 Thread Ben Finney
Howdy all, I'm pleased to announce the release of version 1.4.8 of ‘python-daemon’. What is ‘python-daemon’ === The ‘python-daemon’ library is the reference implementation of PEP 3143 http://www.python.org/dev/peps/pep-3143/>, “Standard daemon process library”. Th

Re: subprocess + python-daemon - bug/problem?

2009-09-16 Thread Ben Finney
Ben Finney writes: > I'm not familiar enough with the nuances of the ‘subprocess’ module to > know what might be going wrong here. I'd like to know whether it might > be a problem in the ‘python-daemon’ library. My test case for this is now:: = #! /usr/bin/python impo

Re: subprocess + python-daemon - bug/problem?

2009-09-16 Thread Ben Finney
esponsible parties can reproduce the problem as you've shown. > This patch allows python-daemon to work with subprocess: Thank you, this *really* helps narrow down the problem. I don't know if I'll simply be removing the handling as you suggest, but it certainly makes the range of

Re: subprocess + python-daemon - bug/problem?

2009-09-16 Thread Joel Martin
On Sep 8, 5:19 pm, Ben Finney wrote: > Sewar writes: > > I looked at other daemon libraries and snippets, it's clearly the bug is in > > subprocess not python-daemon. > > Then I found Python bug #1731717 which discusses it. I'm running python-2.6.2 which supp

Re: subprocess + python-daemon - bug/problem?

2009-09-08 Thread Ben Finney
Sewar writes: > I looked at other daemon libraries and snippets, it's clearly the bug is in > subprocess not python-daemon. > Then I found Python bug #1731717 which discusses it. Thank you very much! I'm glad to see this is a known issue and that some investigation has alrea

Re: subprocess + python-daemon - bug/problem?

2009-09-08 Thread Sewar
I looked at other daemon libraries and snippets, it's clearly the bug is in subprocess not python-daemon. Then I found Python bug #1731717 which discusses it. I wish my project was opensource so I can post more specific test cases. #1731717 http://bugs.python.org/issue1731717 Thanks --

Re: subprocess + python-daemon - bug/problem?

2009-09-05 Thread Sewar
I got the same bug. Traceback (most recent call last): File "./script1.py", line 30, in call(["python", "script2.py", "arg1"], stdout=sys.stdout, stderr=STDOUT) File "/usr/lib/python2.6/subprocess.py", line 444, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python

Re: subprocess + python-daemon - bug/problem?

2009-09-05 Thread Sewar
I got the same bug. Traceback (most recent call last): File "./script1.py", line 30, in call(["python", "script2.py", "arg1"], stdout=sys.stdout, stderr=STDOUT) File "/usr/lib/python2.6/subprocess.py", line 444, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-04 Thread MacRules
Dennis Lee Bieber wrote: On Thu, 03 Sep 2009 14:43:40 -0400, MacRules declaimed the following in gmane.comp.python.general: Oracle DB in data center 1 (LA, west coast) MSSQL DB in data center 2 (DC, east coast) Note that your thread subject line states MySQL... There is a big differe

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread Ben Finney
MacRules writes: > What I am looking for is this. > > Oracle DB in data center 1 (LA, west coast) > MSSQL DB in data center 2 (DC, east coast) > So network bandwidth is an issue Okay, that's a brief description but is clearer than we had before. > I prefer to have gzip fist and > deliver the da

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread MacRules
Martin P. Hellwig wrote: MacRules wrote: What I am looking for is this. Oracle DB in data center 1 (LA, west coast) MSSQL DB in data center 2 (DC, east coast) So network bandwidth is an issue, I prefer to have gzip fist and deliver the data. If bandwidth is really an issue, you should send

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread Martin P. Hellwig
MacRules wrote: What I am looking for is this. Oracle DB in data center 1 (LA, west coast) MSSQL DB in data center 2 (DC, east coast) So network bandwidth is an issue, I prefer to have gzip fist and deliver the data. If bandwidth is really an issue, you should send compressed delta's. I n

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread MacRules
emon process in Python, there is the ‘python-daemon’ library http://pypi.python.org/pypi/python-daemon> which I hope you will find useful. If you can describe what you're actually trying to do, perhaps it will be clearer whether this library is a good fit. What I am looking for is this. O

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread Ben Finney
cess in Python, there is the ‘python-daemon’ library http://pypi.python.org/pypi/python-daemon> which I hope you will find useful. If you can describe what you're actually trying to do, perhaps it will be clearer whether this library is a good fit. -- \ “If you're not par

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread David Smith
MacRules wrote: > Sean DiZazzo wrote: >> On Sep 2, 8:36 pm, MacRules wrote: >>> Hi, >>> >>> I installed Python daemon, pyodbc module to access the back-end DB >>> server. >>> >>> My setup is like this >>> >>> load

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-03 Thread MacRules
Sean DiZazzo wrote: On Sep 2, 8:36 pm, MacRules wrote: Hi, I installed Python daemon, pyodbc module to access the back-end DB server. My setup is like this load data job -> Python Daemon A, port 6000 -> Python Daemon B, port 7000 -> MySQL Daemon A will perform data compression

Re: python daemon - compress data and load data into MySQL by pyodbc

2009-09-02 Thread Sean DiZazzo
On Sep 2, 8:36 pm, MacRules wrote: > Hi, > > I installed Python daemon, pyodbc module to access the back-end DB server. > > My setup is like this > > load data job -> Python Daemon A, port 6000 -> Python Daemon B, port > 7000 -> MySQL > > Daemon A will perf

python daemon - compress data and load data into MySQL by pyodbc

2009-09-02 Thread MacRules
Hi, I installed Python daemon, pyodbc module to access the back-end DB server. My setup is like this load data job -> Python Daemon A, port 6000 -> Python Daemon B, port 7000 -> MySQL Daemon A will perform data compression, such as GZIP, and send over data to Daemon B. Daem

Re: subprocess + python-daemon - bug/problem?

2009-08-13 Thread Ben Finney
le = open("fake_console.txt", "w+") > daemon.DaemonContext(stdout=fake_console, stderr=fake_console).open() > subprocess.Popen(['echo', '1']).wait() For newcomers to this thread: the ‘daemon’ module is provided by the http://pypi.python.org/pypi/pytho

Email provider recommendations for those tired of mangled messages (was: subprocess + python-daemon - bug/problem?)

2009-07-10 Thread Ben Finney
Ben Finney writes: > Here it is without the unwanted extra line-wrapping that seems to > plague all Google Mail users (seriously, folks: get a real mail > provider that won't mangle your messages) I've been asked off-list whether I have any suggestions for those who want a better email provider.

Re: subprocess + python-daemon - bug/problem?

2009-07-10 Thread Ben Finney
ppears in the file specified for the stderr output of the DaemonContext. Here it is without the unwanted extra line-wrapping that seems to plague all Google Mail users (seriously, folks: get a real mail provider that won't mangle your messages):: Traceback (most recent call last): Fil

Re: subprocess + python-daemon - bug/problem?

2009-07-09 Thread Andy Clegg
s.waitpid(self.pid, 0) > OSError: [Errno 10] No child processes" > > The minimal testcase showing this problem is as follows: > > "import daemon > import subprocess > > daemon.DaemonContext(stderr = open("fakeConsole.txt","w+")).open() > subproces

subprocess + python-daemon - bug/problem?

2009-07-09 Thread Andy Clegg
his problem is as follows: "import daemon import subprocess daemon.DaemonContext(stderr = open("fakeConsole.txt","w+")).open() subprocess.Popen('echo 1').wait()" So there is no threading going on (I've found some bugs relating to subprocess and thr

Re: Dropping privileges in python daemon

2008-08-18 Thread Matthias Bläsing
Am Mon, 18 Aug 2008 14:33:27 +0200 schrieb David Härdeman: > > I'm used from C programming to use setresuid() to change the real, > effective and saved uid in one go, and although the os module has some > of the set*uid() functions it doesn't seem to have setresuid(). no - python offers the posix

Dropping privileges in python daemon

2008-08-18 Thread David Härdeman
I'm currently working on a python daemon which needs to be able to correctly drop privileges after opening ports and files that it needs to open as root. I'm used from C programming to use setresuid() to change the real, effective and saved uid in one go, and although the os module h

Re: Python daemon in Linux

2007-07-05 Thread [EMAIL PROTECTED]
thanx benjamin ) no more questions -- http://mail.python.org/mailman/listinfo/python-list

Re: Python daemon in Linux

2007-07-05 Thread [EMAIL PROTECTED]
As far as I understand the issue, any Python process has a sort of "main" thread. When the main thread exits, the Python process will exit if there are only daemon threads around. If there are any non-daemon threads, the Python process will only exit after those threads are finished. Or, as the doc

Python daemon in Linux

2007-07-05 Thread [EMAIL PROTECTED]
i made MyThread(Thread) when isDaemon() == 0: everything works when isDaemon() == 1: nothing works why??? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python daemon process

2006-08-29 Thread Thomas Dybdahl Ahle
I might not have made myself very clear, since you both got me wrong. What I need, is not a method to terminate a process, but a way to terminate a process when the main process dies. >From the atexit module info: Note: the functions registered via this module are not called when the program is ki

Re: Python daemon process

2006-08-27 Thread Paolo Pantaleo
2006/8/26, Thomas Dybdahl Ahle <[EMAIL PROTECTED]>: > Hi, I'm writing a program, using popen4(gnuchess), > The problem is, that gnuchess keeps running after program exit. > > I know about the atexit module, but in java, you could make a process a > daemon process, and it would only run as long as t

Re: Python daemon process

2006-08-26 Thread faulkner
process = subprocess.Popen(gnuchess) ... os.kill(process.pid, signal.SIGKILL) Thomas Dybdahl Ahle wrote: > Hi, I'm writing a program, using popen4(gnuchess), > The problem is, that gnuchess keeps running after program exit. > > I know about the atexit module, but in java, you could make a process

Python daemon process

2006-08-26 Thread Thomas Dybdahl Ahle
Hi, I'm writing a program, using popen4(gnuchess), The problem is, that gnuchess keeps running after program exit. I know about the atexit module, but in java, you could make a process a daemon process, and it would only run as long as the real processes ran. I think this is a better way to stop g

Re: Example of signaling and creating a python daemon

2005-09-25 Thread Diez B. Roggisch
Jon Monteleone wrote: > What I dont understand about daemonizing a python script is whether or not it > requires the > daemon creation, ie the signal handling and forking of the process, to be > part of the > daemon code or is this code in a separate program that acts like a wrapper to > turn a

Re: Example of signaling and creating a python daemon

2005-09-18 Thread Jon Monteleone
"David Pratt" <[EMAIL PROTECTED]> Cc: Sent: Friday, September 16, 2005 3:31 AM Subject: Re: Example of signaling and creating a python daemon > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >