freebsd-dev/usr.sbin/jail/tests/commands.jail.conf
Michael Zhilin cd38a86c63 [jail] removal by jid doesn't trigger pre/post stop scripts
This commit fixes bug: command "jail -r" didn't trigger pre/post stop
commands (and others) defined in config file if jid is specified insted of
name. Also it adds basic tests for usr.sbin/jail to avoid regression.

Reviewed by:	jamie, kevans, ray
MFC after:      5 days
Differential Revision: https://reviews.freebsd.org/D21328
2019-09-12 18:53:29 +00:00

8 lines
93 B
Plaintext

# $FreeBSD$
exec.prestop = "echo STOP";
exec.prestart = "echo START";
persist;
basejail {}