aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-06-02 04:05:37 +0000
committerRob Austein <sra@hactrn.net>2014-06-02 04:05:37 +0000
commit38419bb62a4abb00b1c374bfea8912714b3bf7ec (patch)
tree94cc37e1a5e1ad42f46f6bbaf8e5ba1c13a2fde2
parent72c7ad03606aac4995aaf9ceb5b5849b9ee8561f (diff)
Archive current configuration of pbuilder robot prior to VM fork lift.
svn path=/trunk/; revision=5858
-rw-r--r--buildtools/rpki-pbuilder.crontab2
-rw-r--r--buildtools/rpki-pbuilder.logrotate12
2 files changed, 13 insertions, 1 deletions
diff --git a/buildtools/rpki-pbuilder.crontab b/buildtools/rpki-pbuilder.crontab
index b81a0901..6a26d3a9 100644
--- a/buildtools/rpki-pbuilder.crontab
+++ b/buildtools/rpki-pbuilder.crontab
@@ -1 +1 @@
-*/10 * * * * /usr/bin/python $HOME/rpki-pbuilder.py > $HOME/rpki-pbuilder.$$.log 2>&1; if test -s $HOME/rpki-pbuilder.$$.log; then /bin/mv -f $HOME/rpki-pbuilder.$$.log $HOME/rpki-pbuilder.log; else /bin/rm -f $HOME/rpki-pbuilder.$$.log; fi
+*/10 * * * * /usr/sbin/logrotate -s /home/sra/logrotate.state /home/sra/logrotate.conf; /usr/bin/python $HOME/builder.py >> $HOME/builder.log 2>&1
diff --git a/buildtools/rpki-pbuilder.logrotate b/buildtools/rpki-pbuilder.logrotate
new file mode 100644
index 00000000..a7df6d48
--- /dev/null
+++ b/buildtools/rpki-pbuilder.logrotate
@@ -0,0 +1,12 @@
+/home/sra/builder.log
+{
+ rotate 30
+ daily
+ missingok
+ notifempty
+ dateext
+ compress
+ compresscmd /usr/bin/xz
+ uncompresscmd /usr/bin/unxz
+ compressext .xz
+}