Merge lp:~andrea.corbellini/beeseek/logrotate into lp:beeseek/1.0

Proposed by Andrea Corbellini
Status: Merged
Merged at revision: not available
Proposed branch: lp:~andrea.corbellini/beeseek/logrotate
Merge into: lp:beeseek/1.0
Diff against target: None lines
To merge this branch: bzr merge lp:~andrea.corbellini/beeseek/logrotate
Reviewer Review Type Date Requested Status
Andrea Colangelo Approve
Review via email: mp+10874@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote :

This branch adds a logrotate configuration file for BeeSeek. It needs to be reviewed to check if it is policy-compilant.

Revision history for this message
Andrea Colangelo (warp10) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2009-08-28 13:32:45 +0000
+++ Makefile 2009-08-29 17:53:21 +0000
@@ -20,7 +20,8 @@
20PLATFORM := $(shell uname -s | tr A-Z a-z)-$(shell uname -m)20PLATFORM := $(shell uname -s | tr A-Z a-z)-$(shell uname -m)
21PKGFILES := build/lib.$(PLATFORM)-$(PYVERSION)/beeseek \21PKGFILES := build/lib.$(PLATFORM)-$(PYVERSION)/beeseek \
22 build/scripts-$(PYVERSION)/beeseek-peer \22 build/scripts-$(PYVERSION)/beeseek-peer \
23 beeseek-peer.init config database templates setup.py23 config database templates beeseek-peer.init \
24 beeseek-peer.logrotate setup.py
24pyflakes_ignore := beeseek/tests/unittests/.*\.py.*(undefined name|imported but unused)25pyflakes_ignore := beeseek/tests/unittests/.*\.py.*(undefined name|imported but unused)
2526
26build: version-info27build: version-info
@@ -44,11 +45,11 @@
4445
45tar.gz: dist/$(FULLNAME).tar.gz46tar.gz: dist/$(FULLNAME).tar.gz
46dist/$(FULLNAME).tar.gz: tar47dist/$(FULLNAME).tar.gz: tar
47 gzip -9 dist/$(FULLNAME).tar48 gzip -f9 dist/$(FULLNAME).tar
4849
49tar.bz2: dist/$(FULLNAME).tar.bz250tar.bz2: dist/$(FULLNAME).tar.bz2
50dist/$(FULLNAME).tar.bz2: tar51dist/$(FULLNAME).tar.bz2: tar
51 bzip2 -9 dist/$(FULLNAME).tar52 bzip2 -f9 dist/$(FULLNAME).tar
5253
53zip: dist/$(FULLNAME).zip54zip: dist/$(FULLNAME).zip
54dist/$(FULLNAME).zip: dist55dist/$(FULLNAME).zip: dist
5556
=== added file 'beeseek-peer.logrotate'
--- beeseek-peer.logrotate 1970-01-01 00:00:00 +0000
+++ beeseek-peer.logrotate 2009-08-29 17:52:39 +0000
@@ -0,0 +1,13 @@
1/var/log/beeseek/*.log {
2 rotate 6
3 daily
4 compress
5 delaycompress
6 sharedscripts
7 missingok
8 nocreate
9
10 postrotate
11 beeseek-peer reopen-logs
12 endscript
13}
014
=== modified file 'config/00default'
--- config/00default 2009-08-23 19:12:47 +0000
+++ config/00default 2009-08-29 17:52:21 +0000
@@ -10,7 +10,7 @@
1010
11# The location of the log file. It defaults to /dev/null, so by default the11# The location of the log file. It defaults to /dev/null, so by default the
12# log is not saved.12# log is not saved.
13#LogFile = /var/log/beeseek.log13#LogFile = /var/log/beeseek/beeseek-peer.log
1414
15# When True, this option enables debug, runs the application in foreground and15# When True, this option enables debug, runs the application in foreground and
16# sets the database/web directories to subdirectories of the application path16# sets the database/web directories to subdirectories of the application path
1717
=== modified file 'setup.py'
--- setup.py 2009-08-28 14:14:30 +0000
+++ setup.py 2009-08-29 17:53:21 +0000
@@ -47,13 +47,13 @@
47 dirs_map = {47 dirs_map = {
48 'BeeSeek/config': 'config',48 'BeeSeek/config': 'config',
49 'BeeSeek/database': 'database',49 'BeeSeek/database': 'database',
50 'BeeSeek/webdata': 'webdata'50 'BeeSeek/webdata': 'webdata',
51 }51 }
52 else:52 else:
53 dirs_map = {53 dirs_map = {
54 'etc/beeseek': 'config',54 'etc/beeseek': 'config',
55 'usr/share/beeseek/templates': 'templates',
55 'var/lib/beeseek/database': 'database',56 'var/lib/beeseek/database': 'database',
56 'usr/share/beeseek/templates': 'templates'
57 }57 }
5858
59 for destination, source in dirs_map.iteritems():59 for destination, source in dirs_map.iteritems():
@@ -73,6 +73,9 @@
73 self.mkpath(os.path.join(install_dir, 'etc/init.d'))73 self.mkpath(os.path.join(install_dir, 'etc/init.d'))
74 self.copy_file('beeseek-peer.init',74 self.copy_file('beeseek-peer.init',
75 os.path.join(install_dir, 'etc/init.d/beeseek-peer'))75 os.path.join(install_dir, 'etc/init.d/beeseek-peer'))
76 self.mkpath(os.path.join(install_dir, 'etc/logrotate.d'))
77 self.copy_file('beeseek-peer.logrotate',
78 os.path.join(install_dir, 'etc/logrotate.d/beeseek-peer'))
76 self.mkpath(os.path.join(install_dir, 'var/log/beeseek'))79 self.mkpath(os.path.join(install_dir, 'var/log/beeseek'))
7780
78 if not self.dry_run and pwd:81 if not self.dry_run and pwd:

Subscribers

People subscribed via source and target branches