public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-admin/logcheck/files: logcheck.cron
@ 2012-12-30 18:53 PaweA Hajdan (phajdan.jr)
  0 siblings, 0 replies; only message in thread
From: PaweA Hajdan (phajdan.jr) @ 2012-12-30 18:53 UTC (permalink / raw
  To: gentoo-commits

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-12-30 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-30 18:53 [gentoo-commits] gentoo-x86 commit in app-admin/logcheck/files: logcheck.cron PaweA Hajdan (phajdan.jr)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox