From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OmoP0-00022l-28 for garchives@archives.gentoo.org; Sat, 21 Aug 2010 13:46:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1928FE079F; Sat, 21 Aug 2010 13:46:06 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id C8366E079F for ; Sat, 21 Aug 2010 13:46:05 +0000 (UTC) Received: by ewy19 with SMTP id 19so3049410ewy.40 for ; Sat, 21 Aug 2010 06:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=4G7CgiNbN3gBvvMG0fUgH1fRt1Fvoca82Plby0BilVk=; b=nHxVjYhsXKgbczg9A7W9kGoY0eBYA27IMZFTcSqo6r/sEQ8eQwJXdebgKjWPTZm8Q1 9B5bELmzofs2xo/HUVjYSxIA1IYI3hNqLJhJR7eTUfyrXwU3I1OhBBqu0CN0uBf/jx3t WAPgGCkSNTldHTYi+ZeeP/i7yFC564Tlrfhxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=JxyBb1Pc/ujZUJp6S7WT19eolC0EwSOImofbxFebELku5FE08d18E9jVyxZm06b5lc rSqmYpO/SffF7xY1IO+XfFtiGI7K8mXbLky4UQbuQMoPDyhe6gqonTngC8tKq/aLyQL7 p2kXssvseqjo3MadFaPnlhJI7gY8X2LekhCvI= Received: by 10.213.97.129 with SMTP id l1mr1463756ebn.56.1282398365190; Sat, 21 Aug 2010 06:46:05 -0700 (PDT) Received: from nazgul.localnet (196-210-202-152.dynamic.isadsl.co.za [196.210.202.152]) by mx.google.com with ESMTPS id z55sm6913085eeh.3.2010.08.21.06.46.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Aug 2010 06:46:03 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Disable fcron logging Date: Sat, 21 Aug 2010 15:43:05 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-ck-r1; KDE/4.4.5; x86_64; ; ) References: <201008211525.35115.wonko@wonkology.org> In-Reply-To: <201008211525.35115.wonko@wonkology.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201008211543.05942.alan.mckinnon@gmail.com> X-Archives-Salt: 3755a8e6-f07b-4287-bced-ee79ca4af0b7 X-Archives-Hash: 42f02b39be520e1faaf65dd8280dd0b9 Apparently, though unproven, at 15:25 on Saturday 21 August 2010, Alex=20 Schuster did opine thusly: > Hi there! >=20 > I want to monitor the power status of my hard drives, so I wrote a little > script that gives me this output: >=20 > sda: standby > sdb: standby > sdc: active/idle 32=B0C > sdd: active/idle 37=B0C >=20 > This script is called every minute via an fcron entry, output goes into a > log file, and I use the file monitor plasmoid to watch this log file in > KDE. >=20 > It's working fine, but also monitor my syslog in another file monitor > plamoid, and now I get lots of these entries: >=20 > Aug 21 14:21:06 [fcron] pam_unix(fcron:session): session opened for user > root by (uid=3D0) Aug 21 14:21:06 [fcron] Job /usr/local/sbin/hdstate >> > /var/log/hdstate started for user root (pid 24483) Aug 21 14:21:08 [fcron] > Job /usr/local/sbin/hdstate >> /var/log/hdstate completed Aug 21 14:21:08 > [fcron] pam_unix(fcron:session): session closed for user root >=20 > There is a nolog option for fcrontab, but I still get this output every > minute: That will tell fcron not to log stuff.=20 It will not tell other apps to not stuff > Aug 21 15:10:06 [fcron] pam_unix(fcron:session): session opened for user > root by (uid=3D0) Aug 21 15:10:08 [fcron] pam_unix(fcron:session): session > closed for user root >=20 > Hmmm... could it be that these entries do not come from fcron itself, but > from PAM?=20 Yes.=20 Configure your syslogger to devnull these specific entries. All three common sysloggers (syslogd,syslog-ng,rsyslog) all come with=20 extensive documentation on how to do this. =2D-=20 alan dot mckinnon at gmail dot com