feat: server logs with 'steam' group

This commit is contained in:
GenZmeY 2020-07-10 23:50:25 +03:00
parent e3a9f8ecfe
commit f096d40433

View File

@ -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