Subject: Re: rc.d/* help - writing my own script
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: netbsd-help
Date: 02/03/2006 16:55:35
Jan Danielsson --> netbsd-help (2006-02-03 16:37:41 +0100):
> Jukka Salmi wrote:
> >>> To start the script in the background, set
> >>>
> >>> 	command_args='&'
> >>>
> >>> in your rc script.
> >> Hmm... That doesn't seem to help. Is there something more I need to do?
> > 
> > No, I don't think so. I don't have Python installed, but testing with
> > a shell script and command_interpreter='/bin/sh' works fine here...
> > What does `head -1 /usr/local/bin/pflogger.py' print?
> 
> # head -1 /usr/local/bin/pflogger.py
> #!/usr/bin/env python
> 
> Do I need to change that to something else?

Hmm, didn't you get something like

    WARNING: $command_interpreter /usr/pkg/bin/python24 != /usr/bin/env

when issuing '/etc/rc.d/pflogger start'?

However, if you change the first line of your Python script to

#!/usr/pkg/bin/python24

your problem should be solved.


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~