Running perl scripts from rc.d under FreeBSD
If you have even tried to run a perl script under FreeBSD’s startup system rc.d then you’ll have hit upon a little problem where it doesnt correctly recognise the running process on shutdown. There’s a simple fix for this just apply the patch below and you’ll be good to go.
--- /etc/rc.subr.orig Mon Oct 8 18:31:34 2007 +++ /etc/rc.subr Mon Oct 8 18:32:31 2007 @@ -271,5 +271,5 @@ _fp_args='_argv' _fp_match='case "$_argv" in - ${_interp}|"${_interp} "*|"${_interpbn}: ${_procname}"*)' + ${_interp}|"${_interp} "*|"[${_interpbn}]"|"${_interpbn}: ${_procname}"*)' else # a normal daemon _procnamebn=${_procname##*/} |
Leave a Reply
You must be logged in to post a comment.