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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
. 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 &
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
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
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
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
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
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:
>
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
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
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:
>
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
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
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/
>>
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/
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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:
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
thanx benjamin )
no more questions
--
http://mail.python.org/mailman/listinfo/python-list
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
i made MyThread(Thread)
when isDaemon() == 0:
everything works
when isDaemon() == 1:
nothing works
why???
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
"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 - 100 of 104 matches
Mail list logo