From: Darold Gilles Date: Thu, 14 Jan 2016 21:17:33 +0000 (+0100) Subject: Add command line option --pid-dir to be able to run two pgbadger at the same time X-Git-Tag: v7.3~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed9bea20349ec85e8f02a99d1128b032098cffb3;p=pgbadger Add command line option --pid-dir to be able to run two pgbadger at the same time by setting an alternate path to the directory where the pid file will be written. --- diff --git a/README b/README index 215f9cf..39be9a7 100644 --- a/README +++ b/README @@ -132,6 +132,9 @@ SYNOPSIS --journalctl command : command to use to replace PostgreSQL logfile by a call to journalctl. Basically it might be: journalctl -u postgresql-9.5 + --pid-dir dirpath : set the path of the directory where the pid file + will be written to be able to run two pgbadger at + the same time. pgBadger is able to parse a remote log file using a passwordless ssh connection. Use the -r or --remote-host to set the host ip address or diff --git a/doc/pgBadger.pod b/doc/pgBadger.pod index 893ca3d..3c49846 100644 --- a/doc/pgBadger.pod +++ b/doc/pgBadger.pod @@ -134,7 +134,9 @@ Options: --journalctl command : command to use to replace PostgreSQL logfile by a call to journalctl. Basically it might be: journalctl -u postgresql-9.5 - + --pid-dir dirpath : set the path of the directory where the pid file + will be written to be able to run two pgbadger at + the same time. pgBadger is able to parse a remote log file using a passwordless ssh connection. Use the -r or --remote-host to set the host ip address or hostname. There's also diff --git a/pgbadger b/pgbadger index a640252..a26da2a 100755 --- a/pgbadger +++ b/pgbadger @@ -424,6 +424,7 @@ my $result = GetOptions( 'log-duration!' => \$log_duration, 'enable-checksum!' => \$enable_checksum, 'journalctl=s' => \$journalctl_cmd, + 'pid-dir=s' => \$PID_DIR, ); die "FATAL: use pgbadger --help\n" if (not $result); @@ -1832,7 +1833,9 @@ Options: --journalctl command : command to use to replace PostgreSQL logfile by a call to journalctl. Basically it might be: journalctl -u postgresql-9.5 - + --pid-dir dirpath : set the path of the directory where the pid file + will be written to be able to run two pgbadger at + the same time. pgBadger is able to parse a remote log file using a passwordless ssh connection. Use the -r or --remote-host to set the host ip address or hostname. There's also