feat: server logs with 'steam' group
This commit is contained in:
parent
4a53fda1c5
commit
546a1d1740
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user