2004-01-29, cs keltezéssel 18:06-kor Laurent Mesuré ezt írta:
Hi,
I'm using syslog-ng 1.6 on a Mandrake Linux server. I have the follosing error while starting:
parse error reading configuration file, exiting. (line 42)
I can't find the error.
Here is my configuration file:
------------------------START OF FILE------------------------ # syslog-ng configuration file. # # This should behave pretty much like the original syslog on RedHat. But # it could be configured a lot smarter. # # See syslog-ng(8) and syslog-ng.conf(5) for more information. # # 20000925 gb@sysfive.com # # Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 10 Aug 2002 # - for Red Hat 7.3 # - totally do away with klogd # - add message "kernel:" as is done with klogd. # # Updated by Frank Crawford (<Frank.Crawford@ac3.com.au>) - 22 Aug 2002 # - use the log_prefix option as per Balazs Scheidler's email #
options { sync (0); time_reopen (10); log_fifo_size (1000); long_hostnames (off); use_dns (yes); use_fqdn (yes); create_dirs (yes); keep_hostname (yes); };
source s_sys { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ("/dev/log"); internal(); };
destination d_cons { file("/dev/console"); }; destination d_tty12 { file("/dev/tty12"); }; destination d_mesg { file("/var/log/messages"); }; destination d_secure { file("/var/log/secure"); }; destination d_mail { file("/var/log/maillog"); }; destination d_boot { file("/var/log/boot.log"); }; destination d_cron_info { file("/var/log/cron/info"); }; destination d_cron_warnings { file("/var/log/cron/warnings"); }; destination d_cron_errors { file("/var/log/cron/errors"); }; destination d_syslog { file("/var/log/syslog"); }; destination d_user { file("/var/log/user.log"); }; destination d_auth { file("/var/log/auth.log"); ); <-------- here is line 42 destination d_mail_info { file("/var/log/mail/info"); );
the marked line should contain a closing brace '}' instead of a closing parenthesis ')'. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1