]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Skip jails which are already running and inform why.
authorPawel Jakub Dawidek <pjd@FreeBSD.org>
Sun, 7 Aug 2005 23:19:02 +0000 (23:19 +0000)
committerPawel Jakub Dawidek <pjd@FreeBSD.org>
Sun, 7 Aug 2005 23:19:02 +0000 (23:19 +0000)
commit5b3e51893614b262153f309b8d02980fa35b45e3
treefe0248df5e25e8afec02019dfedb5cf2381bc0d9
parent3dd22bbe78b5c52060934dc97da8c6f39f6269f6
Skip jails which are already running and inform why.
We're checking for /var/run/jail_<name>.id file and if it exists, we don't
start the jail. It should be also safe in case of reboot(8), because
rc.d/cleanvar script is going to remove /var/run/jail_* files.

It helps to avoid potential mess when the same jail is started twice,
because of an administrator mistake (been there, done that).

MFC after: 1 week
etc/rc.d/jail