Solved jail - disable autostart for jail

hello,

in testing little HA (CARP + ZREP + Jails) and have problem with Jails.
I create Jail (with ezjail, but managed via Jail command).
Default, when host start - jail starts too, but i want to start jails from script (using CARP and DEVD action).

Is there any way to disable jail autostart?

thanks
kazix
 
Remove the jail from the jail_list in /etc/rc.conf. This is what tells the system which jails to start.
 
hm...
strange, this not work for me...
it is my rc.conf:
Code:
 jail_enable="YES"
 jail_list=""

after reboot
Code:
root@opio1:~ # jls -v
   JID  Hostname                      Path
        Name                          State
        CPUSetID
        IP Address(es)
    1  jt3.local                     /usr/jails/jt3
        jt3                           ACTIVE
        2
        10.10.1.145

and I can log in to jt3
Code:
root@opio1:~ # jexec jt3
You have mail.
root@jt3:/ #

any idea?
 
Dear kazix,
Can it be that you have ezjail_enable="YES" in /etc/rc.conf? Removing this might work with respect to the automatic startup of the jails. Or you can change them not to be started by ezjail by ezjail-admin config -r norun jt3.
 
I disabled ezjail before testing "clear jail".
I found problem and solution, like always it is my fault :(
before:
Code:
#ezjail_enable=YES
jail_enable="YES"
jail_list=""

after:
Code:
#ezjail_enable=YES
jail_enable="YES"
jail_list=" "

In the jail_list must be "space" between quotation marks.
Now working great :)

kazix
 
  • Thanks
Reactions: Yze
Back
Top