Send a link

ezjail

Table of contents



Homepage

This is the author's official homepage:
http://erdgeist.org/arts/software/ezjail/ (external link)

Updating basejail from new world

After installing world on the base FreeBSD system, you want to update the basejail, too:
ezjail-admin update -i


Adding a new jail

ezjail-admin create -f default -r [dirname in fs] [jail name/hostname] [ip address]

Fields

Name in fs: give this something close to the jail name/hostname for easy understanding (i.e. DOMAIN or service name)
Jail name/hostname: name this after the primary use of the domain (i.e. mail/db/www.DOMAIN.TLD)
IP address: this should be self expanatory

Deleting a jail

ezjail-admin delete [jail name/hostname]


Re-adding a jail

ezjail-admin create -x -r [existing dirname in fs] [new or same jail name/hostname] [new or same ip address]

Fields

Option x: This flag means the jail is already existing, and should be re-created with the given options.

Starting/stopping a jail

ezjail start|stop [jail name]

If you leave out jail name you will start/stop all jails.

Installing and updating ports (incl. portupgrade)

The dir /usr/ports is read only due to the nature of ezjail. This saves a LOT of space, so use it and embrace it ;)
If your ports or portupgrade do not install/update make sure you have these 3 lines in your /etc/make.conf file:
WRKDIRPREFIX=           /var/ports
DISTDIR=                /var/ports/distfiles
PACKAGES=               /var/ports/packages


  • + : A leading plus sign indicates that this word must be present in every object returned.
  • - : A leading minus sign indicates that this word must not be present in any row returned.
  • By default (when neither plus nor minus is specified) the word is optional, but the object that contain it will be rated higher.
  • < > : These two operators are used to change a word's contribution to the relevance value that is assigned to a row.
  • ( ) : Parentheses are used to group words into subexpressions.
  • ~ : A leading tilde acts as a negation operator, causing the word's contribution to the object relevance to be negative. It's useful for marking noise words. An object that contains such a word will be rated lower than others, but will not be excluded altogether, as it would be with the - operator.
  • * : An asterisk is the truncation operator. Unlike the other operators, it should be appended to the word, not prepended.
  • " : The phrase, that is enclosed in double quotes ", matches only objects that contain this phrase literally, as it was typed.

Menu