85f125eeec
- Partially based on work in [1] - Convert to PORTDOCS= and PORTEXAMPLES= - Pet portlint - Add sysutils/rsyslog7-devel at version 7.3.15 PR: 176601 [1] Submitted by: Cristiano Rolim Pereira <cristianorolim at outlook.com> [1] Reviewed by: koobs@, jgh@
25 lines
849 B
Text
25 lines
849 B
Text
===================================================================
|
|
To start using rsyslogd(8), stop syslogd(8) if it's running and
|
|
add the following lines to rc.conf(5):
|
|
|
|
syslogd_enable="NO"
|
|
rsyslogd_enable="YES"
|
|
|
|
It's recommended to copy syslog.conf(5) to
|
|
%%PREFIX%%/etc/rsyslog.conf and edit it there. Otherwise add
|
|
this:
|
|
|
|
rsyslogd_config="/etc/syslog.conf"
|
|
|
|
Add the following (3) lines to the beginning of the config file, for
|
|
basic functionality:
|
|
|
|
$ModLoad immark.so # provides --MARK-- message capability
|
|
$ModLoad imuxsock.so # provides support for local system logging
|
|
$ModLoad imklog.so # kernel logging
|
|
|
|
newsyslog(8) has the path of syslogd's pid file hardcoded. To
|
|
make it work seamlessly with rsyslog, add this:
|
|
|
|
rsyslogd_pidfile="/var/run/syslog.pid"
|
|
===================================================================
|