diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2010-07-08 07:37:32 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2010-07-08 07:37:32 +0000 |
commit | b80064cbb9898918e6563795d0233e58fde5e7a6 (patch) | |
tree | c805049ad5c2b944a6ce5e4d414b7a5c0dff612e /databases/pgpool-II-30/files/pgpool_remote_start | |
parent | Add an option to build the milter with SPF support. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_8_1_0'.release/8.1.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"; |