Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2013 11:08:22 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245250 - head/etc
Message-ID:  <201301101108.r0AB8M77063413@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Thu Jan 10 11:08:22 2013
New Revision: 245250
URL: http://svnweb.freebsd.org/changeset/base/245250

Log:
  Allow perl scripts to be used in rc.d scripts
  
  PR:		conf/117027
  Reviewed by:	pjd (mentor)
  Approved by:	hrs
  MFC after:	2 weeks

Modified:
  head/etc/rc.subr

Modified: head/etc/rc.subr
==============================================================================
--- head/etc/rc.subr	Thu Jan 10 08:06:12 2013	(r245249)
+++ head/etc/rc.subr	Thu Jan 10 11:08:22 2013	(r245250)
@@ -290,7 +290,7 @@ _find_processes()
 		_interpbn=${1##*/}
 		_fp_args='_argv'
 		_fp_match='case "$_argv" in
-		    ${_interp}|"${_interp} "*|"${_interpbn}: ${_procname}"*)'
+		    ${_interp}|"${_interp} "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*)'
 	else					# a normal daemon
 		_procnamebn=${_procname##*/}
 		_fp_args='_arg0 _argv'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301101108.r0AB8M77063413>