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

[LoN]Kamikaze LoN_Kamikaze at gmx.de
Thu Dec 14 06:39:45 PST 2006


Ashley Moran wrote:
> On 14 Dec 2006, at 13:49, [LoN]Kamikaze wrote:
>> Are you certain that this is the pidfile used by your server? Are you
>> aware that the service is responsible for creating the pidfile, not
>> rc.subr?
> 
> Yes, on both counts.  Works fine with
> 
> #!/usr/local/bin/ruby
> and
> command_interpreter="/usr/local/bin/ruby"
> 
> but not
> 
> #!/usr/bin/env ruby
> and
> command_interpreter="/usr/bin/env"
> 
> 
> Not that important really (now I've got it working one way), just strange
> 
> 
> Ashley

Maybe env replaces itself with the new process. That would explain this behaviour.


More information about the freebsd-questions mailing list