Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/logcheck/files: logcheck.cron
Date: Sun, 30 Dec 2012 18:53:27
Message-Id: 20121230185317.BF8192171E@flycatcher.gentoo.org
1 phajdan.jr 12/12/30 18:53:17
2
3 Modified: logcheck.cron
4 Log:
5 Make sure lock directory exists, bug #440880 by Ivan.
6
7 (Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key 30427902)
8
9 Revision Changes Path
10 1.2 app-admin/logcheck/files/logcheck.cron
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logcheck/files/logcheck.cron?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logcheck/files/logcheck.cron?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logcheck/files/logcheck.cron?r1=1.1&r2=1.2
15
16 Index: logcheck.cron
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-admin/logcheck/files/logcheck.cron,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- logcheck.cron 20 Dec 2009 10:05:09 -0000 1.1
23 +++ logcheck.cron 30 Dec 2012 18:53:17 -0000 1.2
24 @@ -1,5 +1,10 @@
25 #!/bin/bash
26 -#
27 -# Please uncomment the following if you want logcheck to run hourly.
28
29 -#su -s /bin/bash -c /usr/sbin/logcheck logcheck
30 +set -e
31 +
32 +if [ ! -d /var/lock/logcheck ]; then
33 + mkdir -p /var/lock/logcheck
34 +fi
35 +chown -R logcheck:logcheck /var/lock/logcheck
36 +
37 +su -s /bin/bash -c /usr/sbin/logcheck logcheck