From owner-freebsd-ports@FreeBSD.ORG Mon Oct 19 22:31:42 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B769E1065695 for ; Mon, 19 Oct 2009 22:31:42 +0000 (UTC) (envelope-from prvs=53692692c=pschmehl_lists@tx.rr.com) Received: from ip-relay-001.utdallas.edu (ip-relay-001.utdallas.edu [129.110.20.111]) by mx1.freebsd.org (Postfix) with ESMTP id 85C6A8FC0C for ; Mon, 19 Oct 2009 22:31:42 +0000 (UTC) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.44,587,1249275600"; d="scan'208";a="20237202" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-001.utdallas.edu with ESMTP; 19 Oct 2009 17:02:24 -0500 Received: from utd65257.utdallas.edu (utd65257.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id A3B954EF50; Mon, 19 Oct 2009 17:02:24 -0500 (CDT) Date: Mon, 19 Oct 2009 22:02:26 +0000 From: Paul Schmehl To: David Southwell , ports@freebsd.org Message-ID: In-Reply-To: <200910171115.30264.david@vizion2000.net> References: <200910171115.30264.david@vizion2000.net> X-Mailer: Mulberry/4.0.6 (Linux/x86) X-Munged-Reply-To: Figure it out MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Re: policy-weight -spawn $csock error after power out reboot X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2009 22:31:42 -0000 --On Saturday, October 17, 2009 05:15:30 -0500 David Southwell wrote: > > Hi > > FreeBSD dns1.vizion2000.net 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0: Thu Aug > 20 12:54:34 BST 2009 > david@dns1.vizion2000.net:/usr/obj/usr/src/sys/GENERIC amd64 [on intel quad] > > Following an abrupt power system failure and a system reboot this server now > gets this error in maillog: > > postfix/policyd-weight[9622]: warning: cache_query: $csock couln't be > created: connect: No such file or directory, calling spawn_cache() > > No other problems. Just in case it was due to a retained. pid I deleted the > .pid file followed by a normal shutdown and reboot - but am still getting the > same problem. > > Thanks in advance for any guidance It doesn't look like anyone has answered this. That warning message is normal to see at startup but should not persist. The solution is to rm -fr /tmp/.policyd-weight, then restart policyd-weight. Policyd-weight will then recreate that dir and recreate its socket as well as the other files and dirs that go there. -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson