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