From nobody Mon Feb 24 17:27:08 2025 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z1njT0cHFz5pWw6 for ; Mon, 24 Feb 2025 17:27:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z1njS6vS7z3mQg; Mon, 24 Feb 2025 17:27:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740418029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/RzgqCLicaysU3zJHI0DTZEwjYgS4h0IAfhmjNYtHXo=; b=ReVPXaMW+DPT7STZBRdf5hHa72mOGFoXWwj3jxUPh+InVvwkBihRC0xfyyFgCdLbWhf9Om /3Kte8XJ5Gev9tDnnRLUnFk+y7pHveQ6JjPwAH32LhvQmml1cAvpcyh0vyUMR7VlLrBPGI V40omIOBY5zvc4TiPKyQHrvt4VtDhmCxhH2otVqHLbomzYFPxqHfpLMvACIQoOK2guX617 ripygX5RA6ONBiwi/Z3TuGXxRM3ERBd1JQCbIvRgCSlp+B4OVnlQNE4HDamQJLcGGFgbgF scsO6wgiXDO18RtMgrklxI4juhSKUYHOda+XULziA3j2V6Fx2FbwXiK3epUncQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740418029; a=rsa-sha256; cv=none; b=sqO0tzc8ZMP6yDyBYNHTYo9Urr49sKkMA6jblSw2kGyiMUuDJ3861xedPtTOcLznk0xr+v ZHTUxdx7IjHdJMMI4xkYqxygNme+119k80E5h3ah2pFtKb62uaFJDMsF8jRRLalQQGMYF/ e8zxp8mBasXUlqalqYvGOES8+3dX9jdbGMDs5aLcN0nangdVCWqTt+CvvbyKdMwaq0hQzU PvcToeZ2KDyE2nFAmKsKC7GP1pR8hzYnnXJrvO/jXNHpO0T6uaGwv/w/GY3rYahY93R6H5 oHuVP5za5kkQ6uFqgck9SmSAktGzlvhVLQX6bJ4/Nhmf1j0pStUsBN1jzhQEWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740418029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/RzgqCLicaysU3zJHI0DTZEwjYgS4h0IAfhmjNYtHXo=; b=QyI1HrX+NpojypDaBw9X2yubwBI7eM9bB5nwBqDf28AW+fenIioVyvdLLClA6pIfN0Iqec t8Ci0EeIkX0G+9VjolD9Vc946GC0CvsISIjoNp9mxNQCAMPoCYfeKJb4jVD4ELLshqcGJB 6N9xZLksX9t9Ozq65phn5T/Lbv1iEQ0VHKQNjHJ75v9aaMTzd8NZfSn4jGNXClqDWbDkJk LtZZJgPMuRhFsaJNx1psetC+OslGLMEWMcqc735pArMiFODtOYFaky3ksNmDAJgDbpLz+N 1Xm+egT1BbHh5pV5fvg6kmJKoE3aKmrJiQ48+R+5hGj2MkxsAEkvjzl56rdYPw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Z1njS62fqzqqm; Mon, 24 Feb 2025 17:27:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 51OHR8mY090775; Mon, 24 Feb 2025 17:27:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51OHR8WT090772; Mon, 24 Feb 2025 17:27:08 GMT (envelope-from git) Date: Mon, 24 Feb 2025 17:27:08 GMT Message-Id: <202502241727.51OHR8WT090772@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Alexander Ziaee Subject: git: 9ea2efb8c1 - main - handbook/jails: Correct vnet jail example List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9ea2efb8c115a6037f556d8f8c31f4d97788d3a5 Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/doc/commit/?id=9ea2efb8c115a6037f556d8f8c31f4d97788d3a5 commit 9ea2efb8c115a6037f556d8f8c31f4d97788d3a5 Author: Alexander Ziaee AuthorDate: 2025-02-24 17:23:41 +0000 Commit: Alexander Ziaee CommitDate: 2025-02-24 17:23:51 +0000 handbook/jails: Correct vnet jail example In an AMA on the Community Discord, it was revealed that this example was copied from Antranig's blog incorrectly. Correct the syntax here. Reported by: Antranig Vartanian Reported by: Niclas Reviewed by: bcr, mhorne Approved by: mhorne (mentor) Differential Revision: https://reviews.freebsd.org/D48972 --- documentation/content/en/books/handbook/jails/_index.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/content/en/books/handbook/jails/_index.adoc b/documentation/content/en/books/handbook/jails/_index.adoc index f938ca334f..f0fdcac50c 100644 --- a/documentation/content/en/books/handbook/jails/_index.adoc +++ b/documentation/content/en/books/handbook/jails/_index.adoc @@ -730,8 +730,6 @@ The following is an example configuration for a VNET jail: .... vnet { # STARTUP/LOGGING - exec.start = "/bin/sh /etc/rc"; - exec.stop = "/bin/sh /etc/rc.shutdown"; exec.consolelog = "/var/log/jail_console_${name}.log"; # PERMISSIONS @@ -761,6 +759,8 @@ vnet { exec.prestart += "/sbin/ifconfig ${bridge} addm ${epair}a up"; exec.start += "/sbin/ifconfig ${epair}b ${ip} up"; exec.start += "/sbin/route add default ${gateway}"; + exec.start += "/bin/sh /etc/rc"; + exec.stop = "/bin/sh /etc/rc.shutdown"; exec.poststop = "/sbin/ifconfig ${bridge} deletem ${epair}a"; exec.poststop += "/sbin/ifconfig ${epair}a destroy"; }