Fix syslog logging on FreeBSD #407

Merged
witten merged 1 commits from PlqnK/borgmatic:fix-syslog-freebsd into master 1 month ago
PlqnK commented 4 months ago

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 4 months ago
d2533313bc
Fix syslog logging on FreeBSD
witten merged commit af0b3da8ed into master 1 month ago
witten referenced this issue from a commit 1 month ago
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!
continuous-integration/drone/pr Build is failing
The pull request has been merged as af0b3da8ed.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.