feat: server logs with 'steam' group

This commit is contained in:
GenZmeY 2020-07-10 23:50:25 +03:00
parent 4a53fda1c5
commit 546a1d1740

View File

@ -1,8 +1,10 @@
global(parser.permitSlashInProgramName="on") 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