From owner-freebsd-questions Sat Jan 8 3:16:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sblake.comcen.com.au (sblake.comcen.com.au [203.23.236.144]) by hub.freebsd.org (Postfix) with ESMTP id 10BE314DA4 for ; Sat, 8 Jan 2000 03:16:14 -0800 (PST) (envelope-from aunty@sblake.comcen.com.au) Received: (from aunty@localhost) by sblake.comcen.com.au (8.9.3/8.9.3) id WAA42254 for freebsd-questions@FreeBSD.ORG; Sat, 8 Jan 2000 22:17:51 +1100 (EST) (envelope-from aunty) Date: Sat, 8 Jan 2000 22:17:50 +1100 From: aunty To: freebsd-questions@FreeBSD.ORG Subject: Re: syslogd stops Message-ID: <20000108221750.A38776@comcen.com.au> References: <8565ih$2kn8$1@atlantis.rz.tu-clausthal.de> <200001080651.HAA02806@dorifer.heim3.tu-clausthal.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200001080651.HAA02806@dorifer.heim3.tu-clausthal.de> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jan 08, 2000 at 07:51:46AM +0100, Oliver Fromme wrote: > Tony Simaz wrote in list.freebsd-questions: > > If anyone knows a solution to this I would love to hear it as well. I > > have a 2.2.8 mail server running at a remote location that does the same > > thing. I have another 2.2.8 mail server at my office that has never done > > it. But the other one just stops logging once in a while. No warnings of > > any kind or unusual messages prior to it halting. I just log in from the > > office and see that it quit last night sometime. > > What exactly do you mean by "quit"? Did the syslogd process > exit? If so, it should have logged why it exited (unless it's > killed by a SIGKILL). Nope, it's very much alive, all dressed up and asleep at the wheel. > > It's not real > > consistant either. It probably quits about once every two or three > > weeks. In my case sighup is useless as well. I have to kill syslogd and > > restart it. > > Ah, so the process is still there. Does it consume any CPU? > What is the last line that have been logged? What happens > when you type this command: > > logger -i -p kern.emerg -t test "It's alive!" It silently ignores that. This should answer all of your questions... but not necessarily ours: bash$ date Sat Jan 8 22:06:50 EST 2000 bash$ ls -lart /var/log |tail -rw-rw-r-- 1 root wheel 105 Jan 7 14:00 messages.1.gz -rw-rw-r-- 1 root wheel 101 Jan 7 18:00 maillog.1.gz -rw-rw-r-- 1 root wheel 108 Jan 8 14:00 messages.0.gz -rw-rw-r-- 1 root wheel 62 Jan 8 14:00 messages -rw-rw-r-- 1 root wheel 102 Jan 8 18:00 maillog.0.gz -rw-rw-r-- 1 root wheel 62 Jan 8 18:00 maillog drwxr-xr-x 2 root wheel 2048 Jan 8 18:00 . -rw-rw-r-- 1 root wheel 616 Jan 8 21:11 sendmail.st -rw-r--r-- 1 root wheel 176 Jan 8 22:06 wtmp -rw-r--r-- 1 root wheel 28056 Jan 8 22:06 lastlog bash$ cat /var/log/messages Jan 8 14:00:00 hostname newsyslog[40027]: logfile turned over bash$ zcat /var/log/messages.0.zg /var/log/messages.0.zg.gz: No such file or directory bash$ zcat /var/log/messages.0 Jan 7 14:00:01 hostname newsyslog[35980]: logfile turned over Jan 8 14:00:00 hostname newsyslog[40027]: logfile turned over bash$ logger -i -p kern.emerg -t test "It's alive!" bash$ cat /var/log/messages Jan 8 14:00:00 hostname newsyslog[40027]: logfile turned over bash$ bash$ ps waux | grep PID USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND bash$ ps waux | grep syslo root 109 0.0 0.5 820 572 ?? Ss 23Dec99 7:42.94 syslogd bash$ top -n last pid: 40739; load averages: 0.20, 0.15, 0.06 up 15+22:23:14 22:13:21 26 processes: 1 running, 25 sleeping Mem: 6548K Active, 41M Inact, 10M Wired, 3181K Buf, 66M Free Swap: 260M Total, 260M Free PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 109 root 2 0 820K 572K poll 7:43 0.00% 0.00% syslogd bash$ cat /etc/syslog.conf # $FreeBSD: src/etc/syslog.conf,v 1.9.2.1 1999/08/29 14:19:02 peter Exp $ # # Spaces are NOT valid field separators in this file. # Consult the syslog.conf(5) manpage. *.err;kern.debug;auth.notice;mail.crit /dev/console *.notice;kern.debug;lpr.info;mail.crit;news.err /var/log/messages mail.info /var/log/maillog lpr.info /var/log/lpd-errs cron.* /var/cron/log #*.err root #*.notice;news.err root #*.alert root *.emerg * local2.* /var/log/sudo.log local3.* /var/log/sshd.log # uncomment these if you're running inn # news.crit /var/log/news/news.crit # news.err /var/log/news/news.err # news.notice /var/log/news/news.notice !startslip *.* /var/log/slip.log !ppp *.* /var/log/ppp.log !popper /var/log/pop.log bash$ bash$ uname -v FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999 jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC -- Regards, -*Sue*- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message