From owner-freebsd-questions@FreeBSD.ORG Tue Mar 18 17:10:27 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DFEF8C85; Tue, 18 Mar 2014 17:10:27 +0000 (UTC) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ACC30F0A; Tue, 18 Mar 2014 17:10:27 +0000 (UTC) Received: from smarthost.fisglobal.com ([10.132.206.192]) by ltcfislmsgpa01.fnfis.com (8.14.5/8.14.5) with ESMTP id s2IHAQsj019382 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 18 Mar 2014 12:10:26 -0500 Received: from THEMADHATTER (10.242.181.54) by smarthost.fisglobal.com (10.132.206.192) with Microsoft SMTP Server id 14.3.174.1; Tue, 18 Mar 2014 12:10:24 -0500 From: Sender: Devin Teske To: "'Minas Dasygenis'" , References: <20140318155612.GA84624@bigb5.homeftp.net> In-Reply-To: <20140318155612.GA84624@bigb5.homeftp.net> Subject: RE: An admin script to check missing dependencies Date: Tue, 18 Mar 2014 10:10:14 -0700 Message-ID: <00c401cf42cc$ef01ade0$cd0509a0$@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQJA7qPdsnzqasj+r/GNVCWb6JtaQ5oDvDDw Content-Language: en-us X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2014-03-18_05:2014-03-18,2014-03-18,1970-01-01 signatures=0 Cc: dteske@FreeBSD.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2014 17:10:27 -0000 > -----Original Message----- > From: Minas Dasygenis [mailto:mdasyg@ieee.org] > Sent: Tuesday, March 18, 2014 8:56 AM > To: freebsd-questions@freebsd.org > Subject: An admin script to check missing dependencies > > > > Greetings, > > While I administer a number of FreeBSD Servers, I have faced the problem of > an application failing to start, due to a missing dynamic library dependency. > Furthermore, if this application impacts the reputation of the server, then it > is mandatory to fix it as soon as possible. > > The problem originates when I update a port [using portmaster], which > installs a newer version of a library [e.g. removes the library.so.10 and installs > library.so.11]. In such cases, applications that demand the old library stop > working. Usually an "ln -s library.so.11 library.so.10" > fixes the problem, but this means that an early detection is required. > > To help myself [and other freebsd administrators], I have created a script > that I execute it daily. This script checks all files on the system. If it finds a > missing dependency it reports it to the user, as well as a possible fix if this is > available. > > This script is available at my home page at the miscellaneous section: > > http://arch.icte.uowm.gr/mdasyg/misc/check_requisite_library_files.sh > > Why not use "ldd -f%p\\n $file" instead of reading the normal ldd output? -- Devin > I am executing it on every FreeBSD server and whenever a missing library is > found I am notified via email. > > Feel free to contribute any improvements via email and I will update it. > > > Rgz, > > MD > > > --- > Dr. Minas Dasygenis > http://arch.icte.uowm.gr/mdasyg > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.