From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BBBB81381FA for ; Sun, 30 Dec 2012 18:53:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 648EDE0574; Sun, 30 Dec 2012 18:53:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E14F621C034 for ; Sun, 30 Dec 2012 18:53:19 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0601333D3DE for ; Sun, 30 Dec 2012 18:53:19 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 2261) id BF8192171E; Sun, 30 Dec 2012 18:53:17 +0000 (UTC) From: "PaweA Hajdan (phajdan.jr)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, phajdan.jr@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in app-admin/logcheck/files: logcheck.cron X-VCS-Repository: gentoo-x86 X-VCS-Files: logcheck.cron X-VCS-Directories: app-admin/logcheck/files X-VCS-Committer: phajdan.jr X-VCS-Committer-Name: PaweA Hajdan Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20121230185317.BF8192171E@flycatcher.gentoo.org> Date: Sun, 30 Dec 2012 18:53:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 78023ef4-fdb8-449c-ad12-520eeccc8388 X-Archives-Hash: 99aa0d1a60f988e2cc44f10498fdba82 phajdan.jr 12/12/30 18:53:17 Modified: logcheck.cron Log: Make sure lock directory exists, bug #440880 by Ivan. (Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key 30427902) Revision Changes Path 1.2 app-admin/logcheck/files/logcheck.cron file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logcheck/files/logcheck.cron?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logcheck/files/logcheck.cron?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logcheck/files/logcheck.cron?r1=1.1&r2=1.2 Index: logcheck.cron =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-admin/logcheck/files/logcheck.cron,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- logcheck.cron 20 Dec 2009 10:05:09 -0000 1.1 +++ logcheck.cron 30 Dec 2012 18:53:17 -0000 1.2 @@ -1,5 +1,10 @@ #!/bin/bash -# -# Please uncomment the following if you want logcheck to run hourly. -#su -s /bin/bash -c /usr/sbin/logcheck logcheck +set -e + +if [ ! -d /var/lock/logcheck ]; then + mkdir -p /var/lock/logcheck +fi +chown -R logcheck:logcheck /var/lock/logcheck + +su -s /bin/bash -c /usr/sbin/logcheck logcheck