From owner-freebsd-questions Tue Jun 13 20:50:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pericles.IPAustralia.gov.au (pericles.IPAustralia.gov.au [202.14.186.30]) by hub.freebsd.org (Postfix) with ESMTP id 6AB9237B789 for ; Tue, 13 Jun 2000 20:50:24 -0700 (PDT) (envelope-from Peter.Weber@ipaustralia.gov.au) Received: (from smap@localhost) by pericles.IPAustralia.gov.au (8.9.3/8.9.3) id NAA26443 for ; Wed, 14 Jun 2000 13:50:21 +1000 (EST) (envelope-from Peter.Weber@ipaustralia.gov.au) X-Authentication-Warning: pericles.IPAustralia.gov.au: smap set sender to using -f Received: from noteshub01.aipo.gov.au(10.0.100.21) by pericles.IPAustralia.gov.au via smap (V2.0) id xma026428; Wed, 14 Jun 00 13:49:58 +1000 Received: by noteshub01.aipo.gov.au(Lotus SMTP MTA v4.6.6 (890.1 7-16-1999)) id 4A2568FE.00150FA3 ; Wed, 14 Jun 2000 13:50:02 +1000 X-Lotus-FromDomain: IP_AUSTRALIA From: Peter.Weber@ipaustralia.gov.au To: freebsd-questions@FreeBSD.ORG Message-ID: <4A2568FE.00150E92.00@noteshub01.aipo.gov.au> Date: Wed, 14 Jun 2000 13:49:58 +1000 Subject: A question regarding Syslog Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To: freebsd-questions@FreeBSD.ORG cc: When the syslog.conf file specifies that a message be written to a log file and that log file does not exist it appears the message is simply lost. A solution could be to write code into the program (mine that is, not syslog) to check for the log files existence. The problem here is that if someone decided to move the location of the log file in syslog.conf then the program would need to be recompiled, provided of course they knew the program required recompiling. Another solution could be to search the syslog.conf file for the appropriate selector and then read the log file path so that its existence can be checked. This seems a bit messy and a large overhead to include in the program. Has anyone experienced this problem before and or have a solution? Regards, Peter Weber peter.weber@ipaustralia.gov.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message