How To Configure MPD4 Log in FreeBSD
Mpd4 comes with no log configured in the server so we need to configure the logrotate to support mpd4 log.
Below is the steps how to configure mpd4 log :
Login into your server with root access
Edit Syslog.conf
#pico /etc/syslog.conf
### scroll down until the end of files ###
### add few lines below into syslog.conf ###
!mpd
*.* /var/log/mpd.log
### save this file
Create log files in /var/log
#touch /var/log/mpd.log
#chmod o-r /var/log/mpd.log
#chgrp network /var/log/mpd.log
Add MPD flag into /etc/rc.conf
mpd_enable=”YES”
mpd_flags=”-b -s mpd”
Restart Syslog & MPD4 Server
#/etc/rc.d/syslogd reload
#/usr/local/etc/rc.d/mpd4 restart
Result in Tail
#tail -f /var/log/mpd.log
......
Feb 24 11:05:27 xxxxx mpd: [xxxxxx] CCP: state change Ack-Sent –> Opened
Feb 24 11:05:27 xxxxx mpd: [xxxxxx] CCP: LayerUp
Feb 24 11:05:27 xxxxx mpd: Compress using: mppc (MPPE(128 bits), stateless)
Feb 24 11:05:27 xxxxx mpd: Decompress using: mppc (MPPE(128 bits), stateless)
Recent blog posts |
Recent comments
|
Comments
Post new comment