473,388 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Python daemon and popen2

I've created a Python daemon that starts a bunch of BitTorrent downloader
process. Everything is working fine when I start the daemon by hand (logged
on as root). I can quit the session and see that the daemon is running and
the subprocesses are running, too. However, when I configure the system to
automatically start the daemon on boot-up, the daemon runs, but the
processes are not created.

This is on Solaris 8 with Python 2.3.3. The processes are started with
popen2. I'm starting the processes with a script in /etc/rc3.d/S81btseeds.

Any suggestions? Why should it care that it is running at start-up?

Bob Swerdlow
COO
Transpose
rs*******@transpose.com
207-781-8284
http://www.transpose.com

----------------------------------
Fight Spam!
Add this link to your signature (as I did): http://wecanstopspam.org
Click through to find out more.
----------------------------------
Jul 18 '05 #1
1 2126
Am Fri, 03 Sep 2004 15:12:04 -0400 schrieb Bob Swerdlow:
I've created a Python daemon that starts a bunch of BitTorrent downloader
process. Everything is working fine when I start the daemon by hand (logged
on as root). I can quit the session and see that the daemon is running and
the subprocesses are running, too. However, when I configure the system to
automatically start the daemon on boot-up, the daemon runs, but the
processes are not created.

This is on Solaris 8 with Python 2.3.3. The processes are started with
popen2. I'm starting the processes with a script in /etc/rc3.d/S81btseeds.

Any suggestions? Why should it care that it is running at start-up?


Hi,

The environment is different. Check for $HOME, $PATH, umask, ...

HTH,
Thomas

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gernot Hillier | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm the developer of a Linux ISDN application which uses embedded Python for controlling the communication. It starts several threads (i.e....
3
by: Mark Roach | last post by:
I am using the daemonize (double-fork) code from the cookbook, and have bumped into a strange issue. This is what my program is doing: def main(): ... useful things ... os.popen('/usr/bin/lp -d...
6
by: Tsai Li Ming | last post by:
Dear all, I have a problem with a redirecting stdout and stderr. I am a top level module and has no control over the imported modules that are making system calls such as os.system or popen2.* ....
0
by: Jeremy Wilkins | last post by:
Hi all, I'm trying to use popen3 to call cdrdao from within python, it gets half way through though then hangs. This is easy to replicate from the interpreter. import popen2 child =...
2
by: Xah Lee | last post by:
Python Doc Problem Example: os.system Xah Lee, 2005-09 today i'm trying to use Python to call shell commands. e.g. in Perl something like output=qx(ls) in Python i quickly located the...
2
by: awalter1 | last post by:
Hello, I'm developping an application with python, pyGTK and GTK+. I've performed many tests by using methods as Popen, popen2, os.system ... to communicate with Unix (HPUX), The last attempt...
6
by: Johny | last post by:
Is it possible to run a Python program as daemon? Thanks
3
by: frankrentef | last post by:
Greetings all... Newbie to Python... need help with opening a file from within Python... see the following code. import popen2 stdout, stdin = popen2.popen2('c:\test\OpenProgram.exe 1 1')...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.