crees at FreeBSD.org
Thu Dec 6 20:46:23 UTC 2012
On 6 December 2012 20:36, Paul Schmehl <pschmehl_lists at tx.rr.com> wrote:
> I'm trying to figure out how to get an rc.subr script to start and stop a
> This works from the commandline (to start it):
> tclsh /usr/local/bin/dir/script -D -c /usr/local/etc/conffile
> I've tried various combinations of:
> but I keep getting this error:
> unknown directive '/usr/local/bin/sguil-sensor/pads_agent.tcl'
> Doesn't matter if I make that string the val for command and don't use
> command_interpreter or do use command_interpreter.
> I've read the man page over and over, but I'm clueless as to how to use
> run_rc_script, which I *think* is the right way to call this script.
Make the script executable, put a shebang in; #!/usr/bin/env tclsh
command_args="-D -c /usr/local/etc/conffile"
Would be much easier if you were to provide specifics or the actual script :)
More information about the freebsd-ports