Fix syslog logging on FreeBSD #407

Merged
witten merged 1 commits from PlqnK/borgmatic:fix-syslog-freebsd into master 2021-06-23 17:21:27 +00:00
Contributor

Borgmatic doesn't log to syslog on FreeBSD because /dev/log and /var/run/syslog doesn't exists.

The UNIX domain socket to use on FreeBSD is /var/run/log.

See the syslogd FreeBSD man page: https://www.freebsd.org/cgi/man.cgi?query=syslogd&sektion=8 for more information!

I've tested it in a TrueNAS jail and with that fix syslog logging is now working.

Though with the default syslogd configuration only NOTICE and higher levels get logged, but that's a user configuration problem, not a borgmatic one.

Borgmatic doesn't log to syslog on FreeBSD because `/dev/log` and `/var/run/syslog` doesn't exists. The UNIX domain socket to use on FreeBSD is `/var/run/log`. See the syslogd FreeBSD man page: <https://www.freebsd.org/cgi/man.cgi?query=syslogd&sektion=8> for more information! I've tested it in a TrueNAS jail and with that fix syslog logging is now working. Though with the default `syslogd` configuration only `NOTICE` and higher levels get logged, but that's a user configuration problem, not a borgmatic one.
PlqnK added 1 commit 2021-04-02 12:22:40 +00:00
continuous-integration/drone/pr Build is failing Details
d2533313bc
Fix syslog logging on FreeBSD
The UNIX domain socket to use on FreeBSD is /var/run/log.
See syslogd FreeBSD man page: https://www.freebsd.org/cgi/man.cgi?query=syslogd&sektion=8
witten merged commit af0b3da8ed into master 2021-06-23 17:21:27 +00:00
Owner

Thank you for finding and fixing this!

Thank you for finding and fixing this!
Owner

Finally released in borgmatic 1.5.16!

Finally released in borgmatic 1.5.16!
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#407
No description provided.