Toujours pas formaté :-)
de la ligne 61:
#################################################
# Check whether a pid file is present and belongs to a running postmaster.
# Arguments: <pid file path>
sub check_running_postmaster {
my $pid = get_running_pid $_[0];
if (defined $pid) {
if (open PS, '-|', '/bin/ps', '-o', 'comm', 'h', 'p', $pid) {
my $process = <PS>;
chomp $process if defined $process;
close PS;
if (defined $process and ($process eq 'postmaster' or $process eq 'postgres')) {
return 1;
}
} else {
error "Could not exec /bin/ps";
}
}
return 0;
####################################################
> Sinon,
>
> Il y a quoi sur la ligne 63 de ton /usr/bin/pg_ctlcluster
> ?
>
> Christian