Date: Thu, 16 Oct 2008 10:33:36 +0000 (UTC) From: Alexander Leidinger <netchild@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r183938 - user/netchild/misc/src/etc/rc.d Message-ID: <200810161033.m9GAXawm058044@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 '.'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810161033.m9GAXawm058044>