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:04:48
Jan Danielsson --> netbsd-help (2006-02-03 15:23:40 +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?
> This is what I have now:
>
> --------------------------
> #!/bin/sh
>
> # PROVIDE: pflogger
> # REQUIRE: pf pgsql
> # KEYWORD: shutdown
>
> $_rc_subr_loaded . /etc/rc.subr
>
> name="pflogger"
> rcvar=$name
> command="/usr/local/bin/${name}.py"
> command_interpreter="/usr/pkg/bin/python24"
> command_args="&"
> pidfile="/var/run/${name}.pid"
>
> load_rc_config $name
> run_rc_command "$1"
> --------------------------
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~