Dear all,
Setting up jail.conf, I've setup some
Is there a way to make jail run the
Thank you
EDIT: Edited the title, since I though my old title wasn't really clear on what I asked for.
Setting up jail.conf, I've setup some
exec.prestart
& exec.release
scripts for the jail service to run before starting up jail. I'll take one example where I create epair
for the jail's interface in exec.prestart
& destroy them in exec.release
. My problem is that if, for any reason, the jail failed to start or went dying, the exec.prestart
was already done, hence the epair
has already been made, but since it failed to run, the exec.release
won't run to destroy the epair
.Is there a way to make jail run the
exec.relase
or exec.poststop
if the jail failed to start (e.g. if i mistype the interface name, hence jail failed to run since interface not found) or dying (e.g. make slight mistake in exec.start
or the rc.conf file)?Thank you
EDIT: Edited the title, since I though my old title wasn't really clear on what I asked for.