summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Singer2017-05-19 18:04:23 +0200
committerFelix Singer2017-05-19 18:04:23 +0200
commitbb76db464da422e8c04a33f705686db3d50bcca9 (patch)
tree475a8e4d7416decbb1277d7f9ff5483c9be552c0
parent245b4b02de296da7a84efc70e39c3dcc79e5b545 (diff)
downloadaur-bb76db464da422e8c04a33f705686db3d50bcca9.tar.gz
Add logrotate profile
-rw-r--r--PKGBUILD5
-rw-r--r--murmur.logrotate10
2 files changed, 14 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8548d35eb4e..4b09c10e39f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,10 @@ provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
install=murmur-snapshot-minimal.install
source=("https://mumble.info/snapshot/mumble-${pkgver//_/\~}~snapshot.tar.gz"
- "murmur.service")
+ "murmur.service"
+ "murmur.logrotate")
sha512sums=('18d0c2e8d0caeed1306429a367a2756260280a3bcc7ed8bac7c3a6e8b8938e6f13b65c83271f1411b948c50d20d7426aebaf14f271109df8c62209108157e374'
+ 'SKIP'
'SKIP')
build() {
@@ -39,6 +41,7 @@ package() {
install -m755 -D "${murmur}/release/murmurd_new" "${pkgdir}/usr/bin/murmurd"
+ install -m644 -D "murmur.logrotate" "${pkgdir}/etc/logrotate.d/murmur"
install -m644 -D "murmur.service" "${pkgdir}/usr/lib/systemd/system/murmur.service"
install -m755 -d "${pkgdir}/usr/share/man/man1"
diff --git a/murmur.logrotate b/murmur.logrotate
new file mode 100644
index 00000000000..1934fcb66d1
--- /dev/null
+++ b/murmur.logrotate
@@ -0,0 +1,10 @@
+/var/log/murmur/murmur.log {
+ weekly
+ rotate 7
+ compress
+ delaycompress
+ missingok
+ postrotate
+ systemctl restart murmur.service
+ endscript
+}