Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
fwdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
194e697b
authored
Oct 03, 2021
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsyslogd config fix (easier syntax)
parent
721e1dd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
miscellaneous/dhcpd_rsyslog.conf
+12
-14
No files found.
miscellaneous/dhcpd_rsyslog.conf
View file @
194e697b
##############
##############
#
#
# dhcpd_rsyslog.conf
# dhcpd_rsyslog.conf
(in /etc/rsyslog.d)
#
#
# - rsyslog config to generate separate dhcp.log owned by dhcpd user,
# - rsyslog config to generate separate dhcp.log owned by dhcpd user,
# allowing fwdriver to process it
# allowing fwdriver to process it
#
#
# IMPORTANT:
# IMPORTANT:
# 1. UMask=0027 should be set in rsyslog.service
# fw group should be added to dhcpd group in /etc/group
# 2. fw group should be added to dhcpd group
#
#
$
FileCreateMode
0644
$
umask
0027
$
fileOwner
dhcpd
if
($
programname
==
'dhcpd'
)
$
fileGroup
dhcpd
then
{
$
umask
027
action
(
type
=
"omfile"
file
=
"/var/log/dhcp.log"
FileCreateMode
=
"0640"
fileOwner
=
"dhcpd"
fileGroup
=
"dhcpd"
)
if
$
programname
==
'dhcpd'
then
/
var
/
log
/
dhcp
.
log
stop
$
fileOwner
root
}
$
fileGroup
root
$
mask
0077
$
umask
077
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment