From owner-freebsd-ports@FreeBSD.ORG Thu Dec 6 20:36:09 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0904A43E for ; Thu, 6 Dec 2012 20:36:09 +0000 (UTC) (envelope-from prvs=680cec957=pschmehl_lists@tx.rr.com) Received: from ip-001.utdallas.edu (ip-001.utdallas.edu [129.110.20.107]) by mx1.freebsd.org (Postfix) with ESMTP id BCFE58FC14 for ; Thu, 6 Dec 2012 20:36:08 +0000 (UTC) X-Group: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au8EANcAwVCBbgogTmdsb2JhbABEvkUDAQFugl0CgWMaiCOhOIZVmmeQG2EDiF+gfQ X-IronPort-AV: E=Sophos;i="4.84,232,1355119200"; d="scan'208";a="113914109" Received: from zxtm01.utdallas.edu (HELO utd71538.utdallas.edu) ([129.110.10.32]) by ip-001.utdallas.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 06 Dec 2012 14:36:07 -0600 Date: Thu, 06 Dec 2012 14:36:05 -0600 From: Paul Schmehl To: FreeBSD Ports List Subject: rc.subr questions Message-ID: X-Mailer: Mulberry/4.1.0a1 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline; size=1053 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Paul Schmehl List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 20:36:09 -0000 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