From 546a1d174052b14596394f1ffa84e793630d86d4 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 10 Jul 2020 23:50:25 +0300 Subject: [PATCH] feat: server logs with 'steam' group --- SOURCES/rsyslog-kf2-srv.conf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/SOURCES/rsyslog-kf2-srv.conf b/SOURCES/rsyslog-kf2-srv.conf index b4bda5c..07289bb 100644 --- a/SOURCES/rsyslog-kf2-srv.conf +++ b/SOURCES/rsyslog-kf2-srv.conf @@ -1,8 +1,10 @@ global(parser.permitSlashInProgramName="on") -$template NAMED_LOG,"/var/log/%programname%.log" +template(name="DynFile" type="string" string="/var/log/%programname%.log") + +if ($programname startswith "kf2-srv") then +{ + action(Type="omfile" DynaFile="DynFile" FileCreateMode="0644" Umask="0022" FileOwner="root" FileGroup="steam") + stop +} -$FileCreateMode 0644 -$Umask 0022 -if $programname startswith 'kf2-srv' then ?NAMED_LOG -& stop