I'm trying to figure out how to get an rc.subr script to start and stop a script.

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:

command_interpreter
argument_precmd
command_args

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.

--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
*******************************************
"It is as useless to argue with those who have
renounced the use of reason as to administer
medication to the dead." Thomas Jefferson
"There are some ideas so wrong that only a very
intelligent person could believe in them." George Orwell

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to