[ooo-build-commit] .: Branch 'planet-config' - cron.sh .gitignore

Jan Holesovsky kendy at kemper.freedesktop.org
Fri Aug 6 11:38:46 PDT 2010


 .gitignore |    1 +
 cron.sh    |   10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 9f44b16a579cf15d7190ac22c336131f06927e1d
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Fri Aug 6 20:37:55 2010 +0200

    Cron script update.

diff --git a/.gitignore b/.gitignore
index 69feda0..c516376 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /cache
+/planet.lock
 *.tmplc
diff --git a/cron.sh b/cron.sh
index e7fb670..af6f29c 100755
--- a/cron.sh
+++ b/cron.sh
@@ -1,5 +1,9 @@
 #! /bin/sh
 
-cd /home/ooo/planet
-date >> /home/ooo/planet/log
-python planet.py ooo/config.ini >> /home/ooo/planet/log 2>&1
+cd /srv/planet-config
+
+(
+    flock 200
+    date >> /var/log/planet.log
+    python /srv/planet-2.0/planet.py config.ini >> /var/log/planet.log 2>&1
+) 200>/srv/planet-config/planet.lock


More information about the ooo-build-commit mailing list