From owner-svn-doc-head@freebsd.org Sun May 13 19:51:02 2018 Return-Path: Delivered-To: svn-doc-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FF7AFCF4D3; Sun, 13 May 2018 19:51:02 +0000 (UTC) (envelope-from bhd@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D79A7770E3; Sun, 13 May 2018 19:51:01 +0000 (UTC) (envelope-from bhd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BA52F11E8E; Sun, 13 May 2018 19:51:01 +0000 (UTC) (envelope-from bhd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4DJp1ZN082661; Sun, 13 May 2018 19:51:01 GMT (envelope-from bhd@FreeBSD.org) Received: (from bhd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4DJp1cq082660; Sun, 13 May 2018 19:51:01 GMT (envelope-from bhd@FreeBSD.org) Message-Id: <201805131951.w4DJp1cq082660@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bhd set sender to bhd@FreeBSD.org using -f From: Bjoern Heidotting Date: Sun, 13 May 2018 19:51:01 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r51651 - head/de_DE.ISO8859-1/books/handbook/jails X-SVN-Group: doc-head X-SVN-Commit-Author: bhd X-SVN-Commit-Paths: head/de_DE.ISO8859-1/books/handbook/jails X-SVN-Commit-Revision: 51651 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 19:51:02 -0000 Author: bhd Date: Sun May 13 19:51:01 2018 New Revision: 51651 URL: https://svnweb.freebsd.org/changeset/doc/51651 Log: Update to r51462: Document jail.conf Jail configuration jail.conf is the preferred method of configuring jails in all supported FreeBSD versions. Older rc.conf(5) configuration produces a warning. Update the handbook example to match based on the submission in the PR, with a few modifications. Modified: head/de_DE.ISO8859-1/books/handbook/jails/chapter.xml Modified: head/de_DE.ISO8859-1/books/handbook/jails/chapter.xml ============================================================================== --- head/de_DE.ISO8859-1/books/handbook/jails/chapter.xml Sun May 13 19:33:27 2018 (r51650) +++ head/de_DE.ISO8859-1/books/handbook/jails/chapter.xml Sun May 13 19:51:01 2018 (r51651) @@ -5,7 +5,7 @@ $FreeBSD$ $FreeBSDde: de-docproj/books/handbook/jails/chapter.xml,v 1.23 2011/05/25 20:42:25 jkois Exp $ - basiert auf: r51447 + basiert auf: r51462 --> - Eine Liste der Jails, die mit dem Betriebssystem - gestartet werden sollen, wird in die Datei &man.rc.conf.5; - geschrieben: + Konfigurieren Sie die Jail in + /etc/jail.conf: - jail_enable="YES" # Set to NO to disable starting of any jails -jail_list="www" # Space separated list of names of jails + www { + host.hostname = www.example.org; # Hostname + ip4.addr = 192.168.0.10; # IP address of the jail + path = "/usr/jail/www"; # Path to the jail + devfs.ruleset = "www_ruleset"; # devfs ruleset + mount.devfs; # Mount devfs inside the jail + exec.start = "/bin/sh /etc/rc"; # Start command + exec.stop = "/bin/sh /etc/rc.shutdown"; # Stop command +} - - Die Namen der Jails in der - jail_list sollten nur alphanumerische - Zeichen enthalten. - - + Um die Jails mit dem Betriebssystem zu starten, fügen + Sie folgende Zeile in + /etc/rc.conf ein: - - Für jede Jail in der jail_list - sollten in &man.rc.conf.5; einige Einstellungen - vorgenommen werden: + jail_enable="YES" # Set to NO to disable starting of any jails - jail_www_rootdir="/usr/jail/www" # jail's root directory -jail_www_hostname="www.example.org" # jail's hostname -jail_www_ip="192.168.0.10" # jail's IP address -jail_www_devfs_enable="YES" # mount devfs in the jail - - Beim Start einer in &man.rc.conf.5; konfigurierten Jail + Beim Start einer in &man.jail.conf.5; konfigurierten Jail wird das /etc/rc-Skript der Jail (das "annimmt", dass es sich in einem kompletten System befindet) aufgerufen. Für Service-Jails sollten die Startskripte der Jail durch das Setzen der Option - jail_jailname_exec_start + exec.start entsprechend angepasst werden. Eine vollständige Liste der Optionen findet sich - in der Manualpage zu &man.rc.conf.5;. + in der Manualpage &man.jail.conf.5;. &man.service.8; kann zum manuellen Starten und Stoppen der Jail genutzt werden, wenn ein Eintrag in - rc.conf angelegt wurde: + jail.conf angelegt wurde: &prompt.root; service jail start www &prompt.root; service jail stop www