Fix syslog logging on FreeBSD #407

Merged
witten merged 1 commits from PlqnK/borgmatic:fix-syslog-freebsd into master 2 years ago
PlqnK commented 2 years 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 2 years ago
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 2 years ago
witten referenced this issue from a commit 2 years ago
witten commented 2 years ago
Owner

Thank you for finding and fixing this!

Thank you for finding and fixing this!
witten commented 2 years ago
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.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b PlqnK-fix-syslog-freebsd master
git pull fix-syslog-freebsd

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff PlqnK-fix-syslog-freebsd
git push origin master
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
Loading…
There is no content yet.