From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-159932-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E651B1389F5 for <garchives@archives.gentoo.org>; Mon, 17 Nov 2014 13:00:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56E27E08F3; Mon, 17 Nov 2014 13:00:00 +0000 (UTC) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C783E08DC for <gentoo-user@lists.gentoo.org>; Mon, 17 Nov 2014 12:59:58 +0000 (UTC) Received: by mail-vc0-f173.google.com with SMTP id id10so6792835vcb.32 for <gentoo-user@lists.gentoo.org>; Mon, 17 Nov 2014 04:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=NbcZ1qDLJMepPH0hM+Pjuz6iDlpheTVCxviruFkara0=; b=TadeALzChWB7MSQ1H0bfou6eLp4N9nil9l0BC5Wtgj8L1d+zZ7bELmEo5RFIICqw4H CTL/6X4WBP1ANaJ7XtuK8IlEzYpE7JzdDBIbZ9ge6I8xQMt7MPcX3Yiffvk2athTh+oe UOXdsIoL2OEoVvz0aS6wJCE0qrZX5gYMHXfzTyYAxNnfw4rFYKrh8wCAa8p5L1anlxEm DjhA2LviqXOABtz0seHOqGH5ukCjHVcNlZWDFkBONgewxiPTyAws0caAhyGn115a8rfy hukWi2Nkx/2yRs+qjeaOdXFFz7+e7WoOhmnUrSsoO9WmsYyWNstV0TMwzdBQA420B8n7 KbHQ== Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.220.190.201 with SMTP id dj9mr14412130vcb.41.1416229198229; Mon, 17 Nov 2014 04:59:58 -0800 (PST) Sender: freemanrich@gmail.com Received: by 10.52.171.41 with HTTP; Mon, 17 Nov 2014 04:59:57 -0800 (PST) In-Reply-To: <20141117104447.2e2070a3@digimed.co.uk> References: <1415990661.2375.3@numa-be> <5466DEC3.8020209@gmail.com> <20141115093418.0a71519e@digimed.co.uk> <20141115200802.GA26921@waltdnes.org> <CAGfcS_m8EO2Y0hog7jNtu6XfoL7-0i-=FqKpmD7P8RoXzsCvaQ@mail.gmail.com> <20141117055454.GB1529@waltdnes.org> <CAOdo=Sxr5rhPgpw66hW_jxsP-rZMk7oX+afLYyvsc9kps0ZLpw@mail.gmail.com> <20141117104447.2e2070a3@digimed.co.uk> Date: Mon, 17 Nov 2014 07:59:57 -0500 X-Google-Sender-Auth: -5lfVwK60_di3ntoOistwi24Lnw Message-ID: <CAGfcS_nLH0PtJ5mE1NULj1EuSb4DAhGtDGunixSGD+LuPF-aKg@mail.gmail.com> Subject: Re: [gentoo-user] syslog-ng-3.6.1 nearly no log anymore From: Rich Freeman <rich0@gentoo.org> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 8834a088-0f8a-4f04-a099-cab6d9da95af X-Archives-Hash: f4dfc306b0aad1eba389148153b1d52b On Mon, Nov 17, 2014 at 5:44 AM, Neil Bothwick <neil@digimed.co.uk> wrote: > On Mon, 17 Nov 2014 05:32:14 -0500, Tom H wrote: > >> Is the "systemd" USE flag an actual syslog-ng compilation option or it >> is a flag to generate systemd units when syslog-ng is installed? > > Both. > Please read the ebuild before giving answers like this. The unit file is installed regardless of flag setting (which is the standard policy). There is a compile-time option which this also toggles, and it also changes the logrotate script (which probably isn't ideal). I don't know offhand what toggling the compile-time option does. It seems that it does more than simply enable systemd support, though there might be run-time options to control that and if so those should be added to the openrc init.d script. Looking at the syslog-ng admin guide, consider changing your log source from system() (which autodetects the source) to something like: unix-dgram("/dev/log"); file("/proc/kmsg" program-override("kernel") flags(kernel)); That appears to be what system() does when not running systemd. If this works then I think upstream might accept a bug report on this - the autodetection code isn't actually detecting whether systemd is running, but whether it was enabled/installed/etc. -- Rich