Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Aug 2005 23:19:02 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/etc/rc.d jail
Message-ID:  <200508072319.j77NJ2th058909@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2005-08-07 23:19:02 UTC

  FreeBSD src repository

  Modified files:
    etc/rc.d             jail 
  Log:
  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
  
  Revision  Changes    Path
  1.25      +4 -0      src/etc/rc.d/jail



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508072319.j77NJ2th058909>