From owner-freebsd-rc@FreeBSD.ORG Wed Jan 26 14:46:40 2005 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C4C516A4CE for ; Wed, 26 Jan 2005 14:46:40 +0000 (GMT) Received: from mailhub01.unibe.ch (mailhub01.unibe.ch [130.92.9.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E07643D48 for ; Wed, 26 Jan 2005 14:46:40 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from localhost (scanhub03-eth0.unibe.ch [130.92.254.67]) by mailhub01.unibe.ch (Postfix) with ESMTP id BEEC325BA66 for ; Wed, 26 Jan 2005 15:46:38 +0100 (MET) Received: from mailhub01.unibe.ch ([130.92.9.52]) by localhost (scanhub03.unibe.ch [130.92.254.67]) (amavisd-new, port 10024) with LMTP id 26863-02-10 for ; Wed, 26 Jan 2005 15:46:34 +0100 (CET) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub01.unibe.ch (Postfix) with ESMTP id 82B7325BAC9 for ; Wed, 26 Jan 2005 15:46:37 +0100 (MET) Received: from droopy.unibe.ch (droopy [130.92.64.20]) by asterix.unibe.ch (8.11.7p1+Sun/8.11.7) with ESMTP id j0QEkbU25605 for ; Wed, 26 Jan 2005 15:46:37 +0100 (MET) Received: (from roth@localhost) by droopy.unibe.ch (8.12.10+Sun/8.12.9/Submit) id j0QEkmbQ013356 for freebsd-rc@freebsd.org; Wed, 26 Jan 2005 15:46:48 +0100 (MET) Date: Wed, 26 Jan 2005 15:46:48 +0100 From: Tobias Roth To: freebsd-rc@freebsd.org Message-ID: <20050126144648.GA13291@droopy.unibe.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-message-flag: Warning! Using Outlook is insecure and promotes virus distribution. Please use a different email client. X-Virus-checked: by University of Berne Subject: rc.d scripts with multiple arguments X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 14:46:40 -0000 Hi I have an rc.d/ scripts in the works that would benefit from a second argument, eg /etc/rc.d/myscript start foobar As it looks, this is not possible with the current mechanism of run_rc_command(). So my questions: 1) is there already a corrct way to do this? 2) would it make sense of not using run_rc_command() and doing the argument handling in the script itself, therefore allowing multiple arguments? or would this be a stupid idea and against the design of rcng? I can live without this, but if it's somehow possible, it would be nice. Also, if this would theoretically make sense, but rcng doesn't allow it yet, I might have go at improving rcng in this direction. thanks, t.