From owner-freebsd-jail@freebsd.org Tue Feb 9 21:41:52 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C4C37AA3C23 for ; Tue, 9 Feb 2016 21:41:52 +0000 (UTC) (envelope-from marquis@roble.com) Received: from mx5.roble.com (mx5.roble.com [206.40.34.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx5.roble.com", Issuer "mx5.roble.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BB7D2EFE for ; Tue, 9 Feb 2016 21:41:51 +0000 (UTC) (envelope-from marquis@roble.com) Received: from alba.roble.net (mx5.roble.com [206.40.34.5]) by mx5.roble.com (Postfix) with ESMTP id 349426786B for ; Tue, 9 Feb 2016 13:41:45 -0800 (PST) In-Reply-To: References: Date: Tue, 9 Feb 2016 13:41:45 -0800 Subject: Re: exec_poststart From: "Roger Marquis" To: freebsd-jail@freebsd.org Reply-To: marquis@roble.com MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2016 21:41:52 -0000 James Gritton wrote: > You can reference jail parameters within other parameters, much like > you'd use shell variables. In the global part of the definition, you > can set: > exec.poststart = "/path/to/script.sh ${host.hostname}" This is perhaps a tangent but I'm wondering if this syntax could be clarified so 'exec' isn't used to mean 'jexec'? Would also simplify things if subsequent j/exec's didn't require the use of '+=' instead of '='. Ideally both should be deprecated in favor of a sysrc-compatible ':'. Would also be nice if non-0 exit codes didn't abort the entire sequence (without hacking in a subshell;exit 0) and if the man page mentioned some of this. Regarding the man page, there's a URL under AUTHORS that doesn't lead where you might expect... Makes a good case for a policy forbidding non-freebsd.org URLs in man pages. Just MO, Roger Marquis