[packages/anubis-webfw] Rel 2; always create logfile in init script (as anubis itself runs from lower permissions)
arekm
arekm at pld-linux.org
Wed May 6 21:16:14 CEST 2026
commit 8179f24429e5576e1a12d7c0898018b17d87ef48
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 6 21:15:41 2026 +0200
Rel 2; always create logfile in init script (as anubis itself runs from lower permissions)
anubis-webfw.init | 5 +++++
anubis-webfw.spec | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/anubis-webfw.spec b/anubis-webfw.spec
index 38cc1a1..2f88474 100644
--- a/anubis-webfw.spec
+++ b/anubis-webfw.spec
@@ -6,7 +6,7 @@ Summary: Anubis web AI firewall - proof-of-work bot blocker
Summary(pl.UTF-8): Anubis - zapora przeciwko botom AI z wyzwaniem proof-of-work
Name: anubis-webfw
Version: 1.25.0
-Release: 1
+Release: 2
License: MIT
Group: Networking/Daemons/HTTP
#Source0Download: https://github.com/TecharoHQ/anubis/releases
@@ -134,4 +134,4 @@ fi
%attr(755,root,root) %{_bindir}/anubis-iplist2rule
%{systemdunitdir}/anubis-webfw.service
%{_datadir}/anubis-webfw
-%attr(640,anubis,anubis) %ghost /var/log/anubis-webfw.log
+%attr(640,anubis,logs) %ghost /var/log/anubis-webfw.log
diff --git a/anubis-webfw.init b/anubis-webfw.init
index 0098569..68fc7cc 100644
--- a/anubis-webfw.init
+++ b/anubis-webfw.init
@@ -47,6 +47,11 @@ start() {
return
fi
msg_starting "Anubis"
+ if [ ! -e "$LOGFILE" ]; then
+ : > "$LOGFILE"
+ chown anubis:logs "$LOGFILE"
+ chmod 640 "$LOGFILE"
+ fi
: > "$PIDFILE"
chown anubis:anubis "$PIDFILE"
chmod 644 "$PIDFILE"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/anubis-webfw.git/commitdiff/8179f24429e5576e1a12d7c0898018b17d87ef48
More information about the pld-cvs-commit
mailing list