John Oliver wrote: > I was looking for a way to keep track of which PID is being used by a > given instance (among multiple instances) of a program, and found: > > http://developer.novell.com/wiki/index.php/Writing_Init_Scripts > > That page refers to startproc, killproc, and checkproc, which are > apparantly SUSe-specific commands. I'm looking for the Red Hat > equivalents, or whatever the Red Hat way would be to write a PID file > when starting a process. >
Have you looked at the initscripts in your RH /etc/init.d dir? I believe a lot of the magic is in the sourced file functions. There is also an /sbin/pidof that may be used in some scripts. And rpm -qf `which pidof` reports that pidof is provided by SysVinit. You may find other docs and utilities by looking at rpm -ql SysVinit Regards, ..jim pidof is -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
