Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Apr 2015 15:43:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 199586] sysutils/qjail: Configurable directory
Message-ID:  <bug-199586-13-8HofQTfvrH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-199586-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-199586-13@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=199586

--- Comment #3 from Joe Barbish <qjail1@a1poweruser.com> ---
I am the maintainer of qjail. 

Versions of qjail 2.x and older had such a function based on a conf file just
like you have proposed. Users who were using it were only interested in
changing the path location of where the qjail system built its jail
directories, "IE /usr/jails". I suspect this is also the function you are
really after. 

All the qjail variables targeting internal use only files have to be in
"/usr/local/etc". This is a FreeBSD standard so it should not be changed and
was never part of the old directory path conf file. 

The problem that came to light using a directory path conf file is that for
existing users who upgraded to a newer version of qjail lost their customized
directory path conf file because the ports pkg-plist deleted it as part of
installing the new version. From that point on qjail was blind to the existing
jails until the user re-did the change again.

It was decided that changing the directory path default was an advanced user
function and as such the user must have some basic understanding of script
language and the internal workings of qjail. That it was simpler for the
advanced user to edit the qjail script changing the value of the "jaildir"
variable to the desired path. Redoing the same change after a qjail upgrade is
the advanced users responsibility. 

The qjail.8 manual will be updated to include information on this subject for
qjail-3.9.

The hard coded "/usr/jails" in the qjail.vnet.be & qjail.vnet.ng scripts will
be corrected to use the jaildir variable in qjail-3.9.    

This PR can be closed now.

-- 
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-199586-13-8HofQTfvrH>