Solved Jails not found

Code:
# ezjail-admin list | grep mailin
DS  N/A  127.0...       mailin                         /usr/jails/mailin

# ezjail-admin start mailin
Starting jails: mailinjls: jail "mailin" not found
.
/etc/rc.d/jail: WARNING: Per-jail configuration via jail_* variables  is obsolete.  Please consider migrating to /etc/jail.conf.
Error: Could not start mailin.
  You need to start it by hand.

I have tried deleting and recreating it but the error persists. Any ideas?
 
EZJail is old, its developer walked away many, many years ago. I suggest using a different jail management tool.
 
So, given my websites and mail depend on these jails and there is a lot of complex configuration, how would I migrate them to a different tool?
 
Does ezjail have an export command?

Bastille has the ability to import ezjail jails, though I haven’t tried it myself.

Bastille is nice because apart from some stuff it has to handle by itself, all the config is done in jail.conf which essentially allows you to step away at any time and manage the jails with standard jail tooling.

It’s a jail management wrapper, but doesn’t really complicate the jail config.
 
Why is it still included in ports? Someone should deprecate it?
Presumably because some people still use it. It's just the management tool, it's not the actual jail itself, apart from issues like this, there isn't necessarily any reason for people to switch if it's working for them. But, I do agree that sometimes it would be nice to know that something is largely abandoned beyond 3rd party security patches.

I personally use Bastille and while I haven't used ezjail, the following link does go through the process. Just make sure to try it on a test jail before anything that you care about.
 
Well, that was a bit of a marathon, but I got there in the end. ezjail is gone and everything is now on bastille. Things were complicated by the fact that because I have four identical jail setups I only archived the jails once, but on some machines the jails had mounted partitions. Of course, while the setup was identical, the data stored wasn't, so when I imported the jails and subsequently restored the mounts, things didn't match up. Oh what fun that was, especially as it wasn't obvious why some things refused to work complaining about missing directories! The directories were there on the machine they were copied from, just apparently not transferred with the rest of the jail. Of course, they were there, but covered up by the mounts.

I also have a lot of my own programs which run on the host and interact with the jails, so the changed file paths were quite tedious to fix. Anyway, things are now working so all's well that ends well.

As for the original question, it's not so much solved as superseded, but it'll do.
 
Back
Top