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 1Omo5x-0000jH-GL for garchives@archives.gentoo.org; Sat, 21 Aug 2010 13:26:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EFFF7E08ED; Sat, 21 Aug 2010 13:25:36 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id C7EE9E08ED for ; Sat, 21 Aug 2010 13:25:36 +0000 (UTC) Received: from weird.localnet (p4FF0616E.dip.t-dialin.net [79.240.97.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id 4236039A001 for ; Sat, 21 Aug 2010 15:25:36 +0200 (CEST) From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Disable fcron logging Date: Sat, 21 Aug 2010 15:25:34 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-tuxonice-r2; KDE/4.5.0; x86_64; ; ) 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: <201008211525.35115.wonko@wonkology.org> X-Archives-Salt: 8dd3bd6b-2c9f-4da5-af3f-60c80e5e1b61 X-Archives-Hash: d417dbb6cefbac71c58ce8d829367c62 Hi there! I want to monitor the power status of my hard drives, so I wrote a little script that gives me this output: sda: standby=20 sdb: standby=20 sdc: active/idle 32=B0C sdd: active/idle 37=B0C 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. It's working fine, but also monitor my syslog in another file monitor plamoid, and now I get lots of these entries: Aug 21 14:21:06 [fcron] pam_unix(fcron:session): session opened for user ro= ot by (uid=3D0) Aug 21 14:21:06 [fcron] Job /usr/local/sbin/hdstate >> /var/log/hdstate sta= rted for user root (pid 24483) Aug 21 14:21:08 [fcron] Job /usr/local/sbin/hdstate >> /var/log/hdstate com= pleted Aug 21 14:21:08 [fcron] pam_unix(fcron:session): session closed for user ro= ot There is a nolog option for fcrontab, but I still get this output every minute: Aug 21 15:10:06 [fcron] pam_unix(fcron:session): session opened for user ro= ot by (uid=3D0) Aug 21 15:10:08 [fcron] pam_unix(fcron:session): session closed for user ro= ot Hmmm... could it be that these entries do not come from fcron itself, but from PAM? Do I need to look there so suppress them? And if so, would this make sense? I want to suppress only these specific logs, not other stuff that might be interesting. Any ideas? It's nothing important, but maybe there's a simple solution, and I like to learn. Don't knwo much about this PAM stuff yet. Maybe I'll just start a background job for that instead of using fcron. Wonko