Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2020 22:01:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        jail@FreeBSD.org
Subject:   [Bug 245627] jail rc script stops jails not defined in jail.conf
Message-ID:  <bug-245627-29815-C6DsRDXVNx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-245627-29815@https.bugs.freebsd.org/bugzilla/>
References:  <bug-245627-29815@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245627

joeb1@a1poweruser.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joeb1@a1poweruser.com

--- Comment #1 from joeb1@a1poweruser.com ---
Jail definition statements can still be placed in rc.conf which is the pre
release 6.0 method or in the jail.conf file which is the new way since rele=
ase
6.0. The code in rcd/jail needs to be cleaned up removing the processing of=
 the
old rc.conf jail definition method. ezjail uses the rc.conf method and gets=
 a
warning message telling the user to change his jail definition method to use
jail.conf. The ezjail maintainer has been told to update ezjail many times =
over
the past 6 releases of FreeBSD but has not done so. qjail is an updated ver=
sion
of ezjail that uses jail.conf and only starts/stops/restarts jails under it
control. It does not use the default jail.conf file so native jails and oth=
er
jail tools do not step on qjail jails.

When it comes to jails with manual defined definitions in the default jail.=
conf
file with other jail tools also putting their jail definitions in the defau=
lt
jail.conf file the rc.conf jail start statement will start all of them at b=
oot
time by default as designed. Adding the rc.conf jail names statement contai=
ning
the jail names to use is only way to control which jails are started at boot
time by default.=20

It is the users responsibility that native jail and jail tools that use the
default jail.conf file DO NOT exist on the same host at the same time becau=
se
of the possibility of them stepping on each other during host boot or
stop/restart time.=20

To summarize: This is not a bug or short coming in rcd/jail. But a design f=
law
in some jail tools making them incapable of playing nice with native jails
defined in the default jail.conf file. This bug report should be closed bec=
ause
it's not a bug.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245627-29815-C6DsRDXVNx>