Skip to content

Commit

Permalink
HBSD: log pkg changes to /var/log/pkg.log
Browse files Browse the repository at this point in the history
After this commit newsyslog should create the /var/log/pkg.log with
0600 permission and keep them forever. In the same time a new entry
was added to syslog.conf to save all of the pkg or pkg-static releated
operations.

MFS-to: 11-STABLE 12-CURRENT ?
Signed-off-by: Oliver Pinter <[email protected]>
(cherry picked from commit 8716ac1)
(cherry picked from commit 143e086)
Signed-off-by: Oliver Pinter <[email protected]>
(cherry picked from commit 6626c55)
(cherry picked from commit 6ea087b3b21309033d44f1017bbeaa98838f7cb2)
  • Loading branch information
opntr committed Dec 20, 2018
1 parent 775df21 commit 9135625
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions usr.sbin/newsyslog/newsyslog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
/var/log/maillog 640 7 * @T00 JC
/var/log/messages 640 5 1000 @0101T JC
/var/log/monthly.log 640 12 * $M1D0 JN
/var/log/pkg.log 600 10 * * CN
/var/log/devd.log 640 3 1000 * JC
/var/log/security 600 10 1000 * JC
/var/log/utx.log 644 3 * @01T05 B
Expand Down
2 changes: 2 additions & 0 deletions usr.sbin/syslogd/syslog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ cron.* /var/log/cron
# Uncomment this if you wish to see messages produced by devd
# !devd
# *.>=notice /var/log/devd.log
!pkg,pkg-static
*.* /var/log/pkg.log
!*
include /etc/syslog.d
include /usr/local/etc/syslog.d

0 comments on commit 9135625

Please sign in to comment.