HomeFreeBSD

syslogd: Read configuration outside of init loop

Description

syslogd: Read configuration outside of init loop

Move all configuration-file code outside of the initialization loop and
into its own set of functions. Create a readconfigfile() to open the
config and call parseconfigfile() to parse it.

The init() function no longer returns if there was a failure to open the
configuration file. Initialization will be finished, using the backup
logging rules: *.ERR to /dev/console and *.PANIC to all logged in users.

Reviewed by: markj, emaste
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41358

Details

Provenance
jfreeAuthored on Sep 1 2023, 2:48 AM
markjCommitted on Sep 28 2023, 3:51 PM
Reviewer
markj
Differential Revision
D41358: syslogd: Read configuration outside of init loop
Parents
rG518bd54167a8: syslogd: Fix fd type, add enum for filed types
Branches
Unknown
Tags
Unknown