I guess this depends on the version of ps being used. The original 'ps auxww $SLONPID' on my box would list all processes, not just those for $SLONPID. My attempted "solution" wasn't very good, because, of course, $SLONPID could occur anywhere as the pid, ppid, command name, etc. Under SUSE 10.1, ps can be given a -p flag to specify listing for a process id. I guess that would be the way to go on my box. YMMV
Brian Wipf <[EMAIL PROTECTED]> On 14-Nov-06, at 3:29 PM, Brian Wipf wrote: > To properly determine when slon isn't running even though there is > a pid file, I believe line 73 of the launch_clusters.sh file needs > to be modified as follows: > > FINDIT=`ps auxww $SLONPID | grep slon` > > should be: > FINDIT=`ps auxww | grep $SLONPID | grep slon` > > Brian Wipf > <[EMAIL PROTECTED]> _______________________________________________ Slony1-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/slony1-general
