rc.d script for processes started with /usr/bin/env

[LoN]Kamikaze LoN_Kamikaze at gmx.de
Thu Dec 14 04:16:16 PST 2006


Ashley Moran wrote:
> Hi
> 
> I just wrote a little ruby web server for internal use.  I wrote it on
> my mac to deploy on FreeBSD, so I used "#!/usr/bin/env ruby" as the
> shebang.  But when I do that, I can't stop the server with my rc.d
> script (below).  If I change them both to /usr/local/bin/ruby I can make
> it work.
> 
> Is it possible to use /usr/bin/env like this?
> 

All you need to do is to set

command_interpreter="/usr/bin/env"

for more information have a look at rc.subr(8).


More information about the freebsd-questions mailing list