Help creating a process.pid file please

From: Greg Bennett (gbennett@equipecom.com)
Date: Thu Jun 27 2002 - 11:38:15 EDT


Hi,

In order to control the stopping of processes that don't create their own
process.pid file I have written scripts with a line similar to this:
(I'm using named as an example - I know named creates its own named.pid
file)

ps -ef | grep named | awk '{print $2}' > /var/run/named.pid

This type of syntax has worked well in the past. However I am now trying to
control an application (and multiple instances of different versions of that
app) that we have in house that doesn't have anything "unique" to grep for.

Can anyone suggest another way of creating a process.pid file - for a
process that doesn't create one on its own?

I will summarize

Thanks!!

Greg

Greg Bennett
Equipe Communications
gbennett@equipecom.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:32 EDT