svn commit: r183938 - user/netchild/misc/src/etc/rc.d

Alexander Leidinger netchild at FreeBSD.org
Thu Oct 16 10:33:36 UTC 2008


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 '.'


More information about the svn-src-user mailing list