diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2010-03-11 09:42:07 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2010-03-11 09:42:07 +0000 |
commit | 08acf5c407242344b0047b8040900f52df620dde (patch) | |
tree | 49936ec28d8b2a4256959f13245d757df97e04bd /databases/pgpool-II-30/files/pgpool_remote_start | |
parent | Upgrade to version 2.4.0. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_3_0'.release/7.3.0
Diffstat (limited to 'databases/pgpool-II-30/files/pgpool_remote_start')
-rw-r--r-- | databases/pgpool-II-30/files/pgpool_remote_start | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/databases/pgpool-II-30/files/pgpool_remote_start b/databases/pgpool-II-30/files/pgpool_remote_start deleted file mode 100644 index 1c044aef90cb..000000000000 --- a/databases/pgpool-II-30/files/pgpool_remote_start +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/perl -# -# $FreeBSD$ - -use strict; -use warnings; - -my ($host, $dir) = @ARGV; - -my $logger = "logger -t pgpool -p local0.info"; -my $pgctl = "/usr/local/bin/pg_ctl -D $dir"; -my ($fh, $log); - -if (not open($fh, "ssh pgsql\@$host $pgctl -t 5 -w -s -m fast start 2>&1 |")) { - die "cannot open ssh: $!"; -} -if (not open($log, "| $logger")) { - die "cannot open logger: $!"; -} -while (<$fh>) { - print $log $_; -} -close($fh) or die "close(ssh) failed: $!"; -close($log) or die "close(logger): $!"; - -system("ssh pgsql\@$host $pgctl status 2>&1") == 0 or die "pg_ctl status failed"; |