From owner-freebsd-questions@FreeBSD.ORG Thu Sep 15 14:09:57 2005 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E097916A41F for <freebsd-questions@freebsd.org>; Thu, 15 Sep 2005 14:09:57 +0000 (GMT) (envelope-from AshleyMoran@codeweavers.net) Received: from mta07-winn.ispmail.ntl.com (mta07-winn.ispmail.ntl.com [81.103.221.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B3CD43D46 for <freebsd-questions@freebsd.org>; Thu, 15 Sep 2005 14:09:56 +0000 (GMT) (envelope-from AshleyMoran@codeweavers.net) Received: from aamta10-winn.ispmail.ntl.com ([81.103.221.35]) by mta07-winn.ispmail.ntl.com with ESMTP id <20050915140956.YIXE21883.mta07-winn.ispmail.ntl.com@aamta10-winn.ispmail.ntl.com> for <freebsd-questions@freebsd.org>; Thu, 15 Sep 2005 15:09:56 +0100 Received: from jigsaw-sbs02.jigsawhq.com ([213.106.224.113]) by aamta10-winn.ispmail.ntl.com with ESMTP id <20050915140955.YRZV22901.aamta10-winn.ispmail.ntl.com@jigsaw-sbs02.jigsawhq.com> for <freebsd-questions@freebsd.org>; Thu, 15 Sep 2005 15:09:55 +0100 X-Filtered-With-Copfilter: Version 0.1.0beta11 (ProxSMTP 1.2.1) X-Copfilter-Virus-Scanned: ClamAV 0.86.2/1082 - Wed Sep 14 16:22:17 2005 X-Copfilter: Client is part of our network, skipped SpamAssassin Received: from [192.168.0.181] ([192.168.0.181]) by jigsaw-sbs02.jigsawhq.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 15 Sep 2005 15:08:55 +0100 Message-ID: <43298076.7050705@codeweavers.net> Date: Thu, 15 Sep 2005 15:08:54 +0100 From: Ashley Moran <ashley.moran@codeweavers.net> Organization: Codeweavers User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Sep 2005 14:08:55.0062 (UTC) FILETIME=[01F5EB60:01C5B9FF] Subject: Trying to colour syslog-ng logs to ttyv7 but won't work after a reboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 15 Sep 2005 14:09:58 -0000 I have a 5.4-STABLE server that I've reconfigured to use syslog-ng instead of syslogd. It collects logs from all our servers and sorts them into per-host folders. Our network admin showed me his gentoo machine earlier which uses ccze to colour log files as they scroll up the screen. He wanted a high-res display with our whole network's logs scrolling in the background (as much for the geek-porn factor as the usefulness). After a lot of hacking and patching I managed to get the machine running 1024x768. I installed ccze, then modified syslog-ng.conf to use it as a destination: destination term { program("ccze -r > /dev/ttyv7"); }; I set syslog-ng to log all remote logs to this destination, and after re-starting syslog-ng to reload the config, it worked fine. However, for some reason way beyond me, it *will not work* after a reboot. I have to restart syslog-ng after a reboot before it will log to the virtual terminal. Here is the startup script I created in /usr/local/etc/rc.d/syslog-ng.sh: (the mountcritremote and cleanvar requirements I copied from the syslogd file - I assume I want devfs to access /dev/ttyv7) #!/bin/sh # # PROVIDE: syslogng # REQUIRE: devfs mountcritremote cleanvar # BEFORE: SERVERS . /etc/rc.subr name="syslogng" rcvar=`set_rcvar` required_files="/usr/local/etc/syslog-ng/syslog-ng.conf" command="/usr/local/sbin/syslog-ng" load_rc_config $name run_rc_command "$1" Maybe this is some subtle quirk of the boot process that I haven't understood. Can anybody help? Cheers Ashley