Created
November 29, 2020 19:31
-
-
Save ajin/b3cf903f918d3d08c02b9f970338f9c3 to your computer and use it in GitHub Desktop.
Setup homebridge.log with rsyslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this will create a conf for rsyslog to generate logs to homebridge.log | |
cat > /etc/rsyslog.d/homebridge.conf << EOF | |
if $programname == 'homebridge' then { | |
action(type="omfile" file="/var/log/homebridge.log") | |
stop | |
} | |
EOF | |
systemctl restart rsyslog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment