From owner-freebsd-questions Mon Nov 5 7:46:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from isy.liu.se (isy.liu.se [130.236.48.10]) by hub.freebsd.org (Postfix) with ESMTP id CC79A37B405 for ; Mon, 5 Nov 2001 07:46:47 -0800 (PST) Received: from lagrange.isy.liu.se (lagrange.isy.liu.se [130.236.49.127]) by isy.liu.se (8.11.4/8.11.4) with ESMTP id fA5FkZJ26283; Mon, 5 Nov 2001 16:46:39 +0100 (MET) Message-ID: X-Mailer: XFMail 1.5.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011105081809.E24781-100000@mail.carracing.com> Date: Mon, 05 Nov 2001 16:46:48 +0100 (CET) From: Micke Josefsson To: "W. Desjardins" Subject: RE: upsd & logging Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have ftpd to log to its own file like this (in /etc/syslog.conf) !ftpd *.* /var/log/ftpd The ftpd logs to a facility called ftpd. A call to openlog() like: openlog("ftpd", LOG_PID | LOG_NDELAY, LOG_FTP); starts this off. If you look at the sources for upsd you should be able to make it log to a device of your liking. By changes in the openlog()-function. /Micke On 05-Nov-2001 W. Desjardins wrote: > Hello, > > I looked in the archives and read the syslog manpages, but still cant find > what I am looking for. Also, I could not find any useful docs on upsd > configuration so if someone has a pointer to config docs for upsd I would > appreciate it :) > > I have upsd running fine and it logs to the local syslog as well as > logging to a central log server. I added confgs to syslog to log upsd to > its own file and that is working fine, but what I would like to do is > stop all logging of upsd to the main messages file. the logs are just > cluttering up the file and it makes it harder to scan for other messages. > upsd is logging under daemon, but I dont want to remove those from > messages due to other daemons that I still want to log there. > > Is it possible to stop just the upsd program from logging to > /var/log/messages and log only to its own log file? > > TIA, > > Bill > > --------------------------------------------------------- > Bill Desjardins - bill@carracing.com - (USA) 305.205.8644 > http://www.CarRacing.com - Powered by FreeBSD/mod_perl > http://www.FreeBSD.org - The Best OS money cant buy! > http://www.EtherneXt.com - High-Performance Co-Location > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---------------------------------- Michael Josefsson, MSEE mj@isy.liu.se This message was sent by XFMail running on FreeBSD 4.4-STABLE ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message