From owner-svn-src-user@FreeBSD.ORG Thu Oct 16 10:33:36 2008 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFA021065687; Thu, 16 Oct 2008 10:33:36 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BF2448FC28; Thu, 16 Oct 2008 10:33:36 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id m9GAXa8e058045; Thu, 16 Oct 2008 10:33:36 GMT (envelope-from netchild@svn.freebsd.org) Received: (from netchild@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id m9GAXawm058044; Thu, 16 Oct 2008 10:33:36 GMT (envelope-from netchild@svn.freebsd.org) Message-Id: <200810161033.m9GAXawm058044@svn.freebsd.org> From: Alexander Leidinger Date: Thu, 16 Oct 2008 10:33:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r183938 - user/netchild/misc/src/etc/rc.d X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2008 10:33:36 -0000 Author: netchild Date: Thu Oct 16 10:33:36 2008 New Revision: 183938 URL: http://svn.freebsd.org/changeset/base/183938 Log: Tell if a local start/stop script is not executable, helps with debugging and a not so god layer-8-memory sometimes. Modified: user/netchild/misc/src/etc/rc.d/localpkg Modified: user/netchild/misc/src/etc/rc.d/localpkg ============================================================================== --- user/netchild/misc/src/etc/rc.d/localpkg Thu Oct 16 10:31:10 2008 (r183937) +++ user/netchild/misc/src/etc/rc.d/localpkg Thu Oct 16 10:33:36 2008 (r183938) @@ -66,6 +66,8 @@ pkg_stop() (set -T trap 'exit 1' 2 ${script} stop) + elif [ -f "${script}" -o -L "${script}" ]; then + echo -n " (skipping ${script##*/}, not executable)" fi done [ -n "${initdone}" ] && echo '.'