[tor-commits] [translation-tools/master] Implement a simple status file, updated on success

sebastian at torproject.org sebastian at torproject.org
Fri Oct 21 18:20:19 UTC 2011


commit 0da9255a08a4b59b0674ca55be402e7453726a15
Author: Sebastian Hahn <sebastian at torproject.org>
Date:   Fri Oct 21 17:38:35 2011 +0200

    Implement a simple status file, updated on success
    
    Suggestion by weasel. This is so we can monitor when the cronjob is
    stuck via nagios.
---
 config              |    2 ++
 update_translations |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/config b/config
index 855119f..fc54c97 100644
--- a/config
+++ b/config
@@ -10,3 +10,5 @@ TX=/srv/translation.torproject.org/transifex-client/bin/tx
 PROJECTS="bridgedb gettor orbot tsum vidalia vidalia_help vidalia_installer"
 
 PIDFILE=/srv/translation.torproject.org/run/update_translations.pid
+
+STATUSFILE=/srv/translation.torproject.org/run/last_success
diff --git a/update_translations b/update_translations
index 520aef3..97f2ee8 100755
--- a/update_translations
+++ b/update_translations
@@ -44,3 +44,5 @@ if [ -f ${PIDFILE} ]; then
   rm ${PIDFILE}
 fi
 
+# Touch the status file, to indicate that we successfully updated translations.
+touch $STATUSFILE



More information about the tor-commits mailing list