Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-21 Thread Bruno Wolff III
On Fri, May 21, 2004 at 16:59:31 -0400, Andrew Hammond <[EMAIL PROTECTED]> wrote: > > I would be insterested in seeing how to set up multilog by it'self. I > figure that once you get that far, going to daemontools should be pretty > straighforward. It's also within the scope of Postgres' logging

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-21 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno Wolff III wrote: | On Fri, May 21, 2004 at 09:34:04 -0400, | Andrew Hammond <[EMAIL PROTECTED]> wrote: | |>-BEGIN PGP SIGNED MESSAGE- |>Hash: SHA1 |> |>Bruno, would you be willing to write something for docs about how to use |>multilog f

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-21 Thread Bruno Wolff III
On Fri, May 21, 2004 at 09:34:04 -0400, Andrew Hammond <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Bruno, would you be willing to write something for docs about how to use > multilog for postgres? What are you looking for. Do you need to know about how to in

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-21 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno, would you be willing to write something for docs about how to use multilog for postgres? Drew Bruce Momjian wrote: | We documented using rotatelogs in the pg_ctl manual page, and have the | main docs correct on how to use it. Hopefully that will

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-19 Thread Bruce Momjian
We documented using rotatelogs in the pg_ctl manual page, and have the main docs correct on how to use it. Hopefully that will be enough. --- Andrew Hammond wrote: [ PGP not available, raw data follows ] > -BEGIN PGP SI

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-18 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 |>logrotate rotates log files and hups the servers according to a |>configuration file. rotatelogs reads the log data on stdin and reopens |>a new output file once in a while. The first hunk of your patch was |>wrong, the rest seemed OK. | | | OK, jus

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-17 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Eisentraut wrote: | Andrew Hammond wrote: | |>There was recently a huge thread in hackers about the value of making |>postgres easier to install and use. I think this script makes |>postgres easier to use for those of us who can't use syslog. | |

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-16 Thread Bruce Momjian
Peter Eisentraut wrote: > Bruce Momjian wrote: > > Tom Lane wrote: > > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > > Ouch. How long has that documentation been wrong? We have > > > > pointed folks to that section of the docs tons of times, and no > > > > one mentioned that "logrotate" is re

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-16 Thread Peter Eisentraut
Bruce Momjian wrote: > Tom Lane wrote: > > Bruce Momjian <[EMAIL PROTECTED]> writes: > > > Ouch. How long has that documentation been wrong? We have > > > pointed folks to that section of the docs tons of times, and no > > > one mentioned that "logrotate" is really "rotatelogs", and that > > > it

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-15 Thread Peter Eisentraut
Andrew Hammond wrote: > There was recently a huge thread in hackers about the value of making > postgres easier to install and use. I think this script makes > postgres easier to use for those of us who can't use syslog. So you're replacing pg_ctl | rotatelogs which everyone learns in his first

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Ouch. How long has that documentation been wrong? We have pointed > > folks to that section of the docs tons of times, and no one mentioned > > that "logrotate" is really "rotatelogs", and that it is missing > > parameters? > > > I

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Ouch. How long has that documentation been wrong? We have pointed > folks to that section of the docs tons of times, and no one mentioned > that "logrotate" is really "rotatelogs", and that it is missing > parameters? > I have applied the following pat

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Bruno Wolff III
On Fri, May 14, 2004 at 16:02:43 -0400, Andrew Hammond <[EMAIL PROTECTED]> wrote: > > Yes, if you're running daemontools, then multilog is hands down the way > to go. Is it daemontools that really wants to be root? That might be > what I'm confusing it with. Anyway, my goal was to provide a solu

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Bruce Momjian
Andrew Hammond wrote: > ~From what I've seen, I have to disagree. The documentation says to "pipe > the stderr of the postmaster to some type of log rotation program." > which is pretty vague. It then includes an _incorrect_ example of how to > use logrotate (logrotate rotates existing log files, i

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruno Wolff III wrote: | On Fri, May 14, 2004 at 15:31:21 -0400, | Andrew Hammond <[EMAIL PROTECTED]> wrote: | |>- - DJB's multilog requires a whole mess of configuration, and is |>difficult to run unless you're root. In which case you'd be far better

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Bruno Wolff III
On Fri, May 14, 2004 at 15:31:21 -0400, Andrew Hammond <[EMAIL PROTECTED]> wrote: > > - - DJB's multilog requires a whole mess of configuration, and is > difficult to run unless you're root. In which case you'd be far better > off to use syslog anyway. It is rsync friendly I use multilog and it

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Eisentraut wrote: | Andrew Hammond wrote: | |>That's essentially what the patch does. It's better because it does |>it correctly instead of requiring an admin to learn how to do it |>correctly. | | That is entirely unconvincing handwaving. There w

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Peter Eisentraut
Andrew Hammond wrote: > That's essentially what the patch does. It's better because it does > it correctly instead of requiring an admin to learn how to do it > correctly. That is entirely unconvincing handwaving. We already have a method to do what you propose, and it's no less correct or harde

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Andrew Hammond
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Eisentraut wrote: | Am Freitag, 14. Mai 2004 17:35 schrieb Andrew Hammond: | |>Please find attached a patch to integrate rotatelogs into pg_ctl. I've |>noticed a couple of questions about how to do this and it seems easier |>(and more elegant) to

Re: [PATCHES] pg_ctl patch to integrate apache's rotatelogs

2004-05-14 Thread Peter Eisentraut
Am Freitag, 14. Mai 2004 17:35 schrieb Andrew Hammond: > Please find attached a patch to integrate rotatelogs into pg_ctl. I've > noticed a couple of questions about how to do this and it seems easier > (and more elegant) to solve it in code rather than in documentation. The > patch is pretty simpl