Search

User login

Poll

What is your favorite DB Server ?:
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

My YM

Author Information

sentono
Offline
Last seen: 2 days 16 hours ago
Joined: 09/21/2007

Alexa Rank

Who's online

There are currently 0 users and 10 guests online.
Home
  • warning: Invalid argument supplied for foreach() in /usr/home/wowtutorial/public_html/sites/all/modules/adsense_injector/adsense_injector.module on line 352.
  • warning: Invalid argument supplied for foreach() in /usr/home/wowtutorial/public_html/sites/all/modules/adsense_injector/adsense_injector.module on line 35.

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)

 

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Recent comments

Facebook Fans

Sponsors

Online Store

Tag Cloud