conf/169047: [rc.subr] [patch] /etc/rc.subr not checking some scripts (e.g. ruby running ' thin' )

Geoff Garside geoff at geoffgarside.co.uk
Tue Mar 11 11:10:01 UTC 2014


The following reply was made to PR conf/169047; it has been noted by GNATS.

From: Geoff Garside <geoff at geoffgarside.co.uk>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: conf/169047: [rc.subr] [patch] /etc/rc.subr not checking some scripts (e.g. ruby running 'thin')
Date: Tue, 11 Mar 2014 11:09:44 +0000

 --Apple-Mail=_F02A976E-F0B6-41CE-8C46-5ABE5FA588FE
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 Heres an updated copy of the patch if that helps.
 
 
 --Apple-Mail=_F02A976E-F0B6-41CE-8C46-5ABE5FA588FE
 Content-Disposition: attachment;
 	filename=etc-rc.subr.patch.txt
 Content-Type: text/plain;
 	x-unix-mode=0644;
 	name="etc-rc.subr.patch.txt"
 Content-Transfer-Encoding: quoted-printable
 
 --- /etc/rc.subr.orig	2014-03-11 11:06:09.251438710 +0000
 +++ /etc/rc.subr	2014-03-11 11:07:29.172157233 +0000
 @@ -288,9 +288,10 @@
  		fi
  		_interp=3D"$* $_procname"		# cleanup =
 spaces, add _procname
  		_interpbn=3D${1##*/}
 +		_procnamebn=3D${_procname##*/}
  		_fp_args=3D'_argv'
  		_fp_match=3D'case "$_argv" in
 -		    ${_interp}|"${_interp} =
 "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*)'
 +		    ${_interp}|"${_interp} =
 "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*|"${_interpbn}: =
 ${_procnamebn}"*)'
  	else					# a normal daemon
  		_procnamebn=3D${_procname##*/}
  		_fp_args=3D'_arg0 _argv'
 
 --Apple-Mail=_F02A976E-F0B6-41CE-8C46-5ABE5FA588FE--


More information about the freebsd-rc mailing list