git: 9ea2efb8c1 - main - handbook/jails: Correct vnet jail example
Alexander Ziaee <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/doc/commit/?id=9ea2efb8c115a6037f556d8f8c31f4d97788d3a5 commit 9ea2efb8c115a6037f556d8f8c31f4d97788d3a5 Author: Alexander Ziaee <[email protected]> AuthorDate: 2025-02-24 17:23:41 +0000 Commit: Alexander Ziaee <[email protected]> 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 <[email protected]> Reported by: Niclas <[email protected]> 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"; }