diff --git a/etc/rc.subr b/etc/rc.subr index a33c07fe9a62..e938cbc065b1 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -264,6 +264,11 @@ _find_processes() read _interp < ${_chroot:-}/$_procname # read interpreter name _interp=${_interp#\#!} # strip #! set -- $_interp + case $1 in + */bin/env) + shift # drop env to get real name + ;; + esac if [ $_interpreter != $1 ]; then warn "\$command_interpreter $_interpreter != $1" fi