Re: postgresql-common et python-uno (ligne 63)

Pàgina inicial

Reply to this message
Autor: Mehdi
Data:  
A: guilde, Christian Bayle
Assumptes vells: Re: postgresql-common et python-uno
Assumpte: Re: postgresql-common et python-uno (ligne 63)



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