On Aug 21, 5:34 am, Sanjay <[EMAIL PROTECTED]> wrote:
> > > ---------------------------------------------------------------
> > > #! /bin/sh
> > > PATH=/bin:/usr/bin:/sbin:/usr/sbin
> > > pidfile=/var/run/tg.pid
>
> Nice script, just to my need, but unfortunately I am using Fedore/
> CentOS; could not find an alternative to start-stop-daemon. Any
> suggestions...

I use a simple script that looks like this:

cd /path/to/mytgapp
nohup /usr/local/bin/python2.4 start-mytgapp.py prod.cfg &
echo $! > pid

I'm not sure this will work on CentOS, but for me this writes the
process ID to the file pid when I start the application. I then know
which process to kill. (If I am using dev.cfg, there will be two
processes to kill, but the process IDs are usually close together.)

Bruce.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to