From owner-freebsd-net@FreeBSD.ORG Sun Jul 8 06:11:21 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3BD5316A400 for ; Sun, 8 Jul 2007 06:11:21 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 8DFF013C447 for ; Sun, 8 Jul 2007 06:11:19 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id QAA13163; Sun, 8 Jul 2007 16:11:12 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 8 Jul 2007 16:11:11 +1000 (EST) From: Ian Smith To: Gloomy Group In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: FreeBSD Net , Alexander Motin , mpd-users@lists.sourceforge.net, Julian Elischer Subject: RE: Mpd daemon stop when rotating mpd.log file with newsyslog.conf X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 06:11:21 -0000 On Sun, 8 Jul 2007, Gloomy Group wrote: > Thanks to all of you. Keeping "N" option solved.Thanks again. (trying to recover the format, more or less) Alexander Motin wrote: > Julian Elischer wrote: > > >> Hello all, I have installed mpd4.2.2 in freebsd 6.2. Everything is > >> working fine except when I make an entry in newsyslog.conf for > >> rotating mpd.log file the mpd daemon process stops. and I have to > >> restart the process again manually. Any one knows what wrong? Below > >> is the newsyslog.conf > >> /var/log/mpd.log 664 7 10900 * JC /var/run/mpd4.pid > > try add the 'N' option. > > I don't know if mpd needs to be signalled if its log file is changed.. > Mpd does not write logs by itself, it uses syslog. So it needs not to be > signalled. Mpd shutdowns itself on HUP signal. Which is a little non-POLA, but then I guess rereading its config and restarting, like most things do on -HUP, probably doesn't make sense. Anyhow, I think 'N' isn't needed if you don't specify a pidfile in the first place .. then only syslogd gets sent a SIGHUP, which never hurts. (if I'm reading newsyslog.conf right) Cheers, Ian (due to upgrade to mpd 4.2.2 on 5.5-S soon .. will report)