summaryrefslogtreecommitdiff
path: root/man7
diff options
context:
space:
mode:
Diffstat (limited to 'man7')
-rw-r--r--man7/ezjail.764
1 files changed, 34 insertions, 30 deletions
diff --git a/man7/ezjail.7 b/man7/ezjail.7
index 8b3b2fb..03f11c5 100644
--- a/man7/ezjail.7
+++ b/man7/ezjail.7
@@ -352,46 +352,50 @@ librairies, you may want to remove the old library versions. It is
352often a good idea to update the jails when a new kernel is installed 352often a good idea to update the jails when a new kernel is installed
353in the host, using the same sources. 353in the host, using the same sources.
354.Ss Starting Jails 354.Ss Starting Jails
355The ezjail script 355Like all
356.Xr rc 8
357scripts, the ezjail script
356.Pa EZJAIL_PREFIX/etc/rc.d/ezjail.sh 358.Pa EZJAIL_PREFIX/etc/rc.d/ezjail.sh
357takes parameters 359accepts parameters
358.Cm start , startcrypto , restart 360.Cm start , restart No and Cm stop, No running, restarting and stopping
359and 361all (non-blocking) jails under ezjail's control by default. When passed an
360.Cm stop . 362additional list of jails, only these jails are acted upon.
361It may be passed an additional list of jails. If no jail name is
362specified (usually when the script is called by the rc system at boot
363and shutdown time), all jails in ezjail's scope, except crypto image
364jails (or jails marked as blocking), are started/stopped. To start all
365crypto image jails (or those depending on them), use the
366.Cm startcrypto
367parameter.
368.Pp 363.Pp
369The 364The order in which jails are started is determined by the
370.Nm Cm start 365.Xr rcorder 8
371command provides the same functionnality. 366tool, using cues from the jail configurations in ezjails
367.Pa EZJAIL_PREFIX/etc/ezjail
368control directory.
372.Pp 369.Pp
373The script examines its config, attaches and mounts images, and sets 370The script examines its config, attaches and mounts images, and sets
374variables for each jail in the jail_list before passing its command on 371variables for each jail in the list before passing its command on
375to the 372to the
376.Pa /etc/rc.d/jail 373.Pa /etc/rc.d/jail
377script. 374script.
378.Pp 375.Pp
379.Cm ezjail.sh 376To interactively start all crypto image jails (or those depending on
380enforces the execution of \fB/etc/rc.d/jail\fR, by prepending 377them), that were not automatically started during booting, use the
381.Em one 378.Cm startcrypto
382to the start, restart, and stop commands so it is 379parameter.
383.Em NOT NECESSARY 380.Pp
384to set 381Note that jails configured to be in the
385.Dq Li $jail_enable
386in the
387.Xr /etc/rc.conf 5
388config file.
389.Pp
390It is possible to set jails as either
391.Em norun 382.Em norun
392(using 383state (using
393.Nm Cm config Fl r Ar norun Ar jailname ) 384.Nm Cm config Fl r Ar norun Ar jailname )
394or as blocking 385are never started by the ezjail.sh script.
386.Pp
387As a convenient shortcut, the
388.Nm Cm
389command invokes the rc.d script and passes the corresponding parameters,
390if they look like valid parameters.
391.Pp
392Even if ezjail is not enabled in the
393.Xr rc.conf 5 ,
394ezjail.sh can be used to start and stop jails by prepending
395.Cm force No or Cm one No to the Cm start, restart No or Cm stop No parameter.
396Refer to
397.Xr rc 8
398for details.
395.Ss Remarks & Tips 399.Ss Remarks & Tips
396Jails can be either accessed from the network, for instance by using 400Jails can be either accessed from the network, for instance by using
397.Xr ssh 1 , 401.Xr ssh 1 ,