[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] Starting jails early

A quick test:


  # $FreeBSD$
  # PROVIDE: earlyjail
  # REQUIRE: netwait
  # BEFORE:  mountcritremote

  /usr/local/bin/ezjail-admin start dns1

This does start the dns1 jail early. However, when /usr/local/etc/rc.d/ezjail is called later in the startup, it in turn calls /etc/rc.d/jail, which sees an error because the jail is already running and happily deletes /var/run/jail_dns1.id.

That does not stop the jail, but ezjail later thinks it is not running.