View Single Post
Old Jul 28th, 2005, 4:01 AM   #13
mchaudhary
Newbie
 
Join Date: Jul 2005
Posts: 2
Rep Power: 0 mchaudhary is on a distinguished road
Lightbulb Need help for installing .py-script as daemon process

Hello Dear

I am using CetOS4.0 and trying to create an init.d script for my python script. It is working fine if i have only one python script running as daemon.
If i run multiple daemons then the problem is "pidof" command. Which returns the pids of all Python programs.
I want to run few Python daemon on machine.
I also tried using

daemon $prog 2>&1 > /dev/null &
echo $! > $pidfile

but this return the pidof "daemon" rather than returning the PID of python script, in later case it also starts syslogger which i do not want to get executed with default setting.

Need hellp urgently.
Please provide some clue.

Manjeet Chaudhary
mchaudhary is offline   Reply With Quote