diff options
author | flz <flz@FreeBSD.org> | 2006-05-07 23:15:39 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2006-05-07 23:15:39 +0000 |
commit | 141ad138acae09682e521dd9b6e04c9e0f0e75de (patch) | |
tree | 2739d8c3baaa4635ad6b2db43aa1c4bf1d965e25 /etc/rc.d | |
parent | aa5d948d4753ccdb206eba7a1ba2198bce13e057 (diff) | |
download | FreeBSD-src-141ad138acae09682e521dd9b6e04c9e0f0e75de.zip FreeBSD-src-141ad138acae09682e521dd9b6e04c9e0f0e75de.tar.gz |
- Check for some mandatory variables.
Approved by: cperciva (mentor)
MFC after: 1 week
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/jail | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail index 0edf078..fbb2dd6 100644 --- a/etc/rc.d/jail +++ b/etc/rc.d/jail @@ -86,6 +86,17 @@ init_variables() debug "$_j exec start: $jail_exec_start" debug "$_j exec stop: $jail_exec_stop" debug "$_j flags: $jail_flags" + + if [ -z "${jail_hostname}" ]; then + err 3 "$name: No hostname has been defined for ${_j}" + fi + if [ -z "${jail_rootdir}" ]; then + err 3 "$name: No root directory has been defined for ${_j}" + fi + if [ -z "${jail_ip}" ]; then + err 3 "$name: No IP address has been defined for ${_j}" + fi + } # set_sysctl rc_knob mib msg |