Hi Roger! Roger Leigh [2005-07-17 9:35 +0100]: > During postgresql startup, I see this: > > hardknott:/home/rleigh# /etc/init.d/postgresql-8.0 start > * Starting PostgreSQL 8.0 database server: main > Use of uninitialized value in -r at /usr/bin/pg_ctlcluster line 112. > The PostgreSQL autovacuum daemon failed to start. Please check the log output: > Use of uninitialized value in open at /usr/bin/pg_ctlcluster line 127. > Use of uninitialized value in concatenation (.) or string at > /usr/bin/pg_ctlcluster line 127. > *ror: Could not open log file > [fail]
That's odd... /etc/postgresql/8.0/main/autovacuum_log should be automatically created and point to /var/log/postgresql/pg_autovacuum-8.0-main.log. Does any of the files not exist on your system? Did you manually remove the file? > Perhaps it needs to skip logging if the '-L' option isn't used? (I > haven't found any use of '-L' in the startup scripts, but I may be > mistaken.) Well, it is hidden a bit: my %avac_flags = ( ..., 'avac_logfile' => '-L', ...) So the $info{'avac_logfile' is translated to the value of "-L". If the symlink is not present or dangling, no log file will be used. However, currently I don't check for the presence of the log file when trying to output the last part of the log if startup fails. Thanks, Martin -- Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org
signature.asc
Description: Digital signature