From owner-freebsd-questions@freebsd.org Wed Aug 26 13:59:23 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CB8DF9C2765 for ; Wed, 26 Aug 2015 13:59:23 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.dweimer.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FBDDE7B for ; Wed, 26 Aug 2015 13:59:22 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.local (webmail [192.168.5.2]) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPS id t7QDo2wg005139 (version=TLSv1.2 cipher=DHE-RSA-CHACHA20-POLY1305 bits=256 verify=NO) for ; Wed, 26 Aug 2015 08:50:02 -0500 (CDT) (envelope-from dweimer@dweimer.net) Received: (from www@localhost) by webmail.dweimer.local (8.15.2/8.15.2/Submit) id t7QDo28I005138; Wed, 26 Aug 2015 08:50:02 -0500 (CDT) (envelope-from dweimer@dweimer.net) X-Authentication-Warning: webmail.dweimer.local: www set sender to dweimer@dweimer.net using -f To: FreeBSD Questions Subject: Jail not starting at Boot X-PHP-Script: www.dweimer.net/webmail/index.php for 71.86.41.122, 192.168.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 26 Aug 2015 08:50:02 -0500 From: dweimer Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net Message-ID: <4437010e968d156ec6087a56bc334b40@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2015 13:59:23 -0000 I have seven jails configured on my system, I have them configured to start at boot with the following lines in /etc/rc.conf jail_enable="YES" jail_parallel_start="YES" They are all defined in /etc/jail.conf, here is the configuration from the first two. They are all basically the same, except IP address and directories. A couple of the ones not included do have one additional entry, depend = "pgsql"; as they have services that can't start without the pgsql databases up. # Define PostgreSQL Jail pgsql { host.hostname = pgsql.dweimer.local; ip4.addr = 192.168.5.6; interface = LAN; path = /jails/pgsql/ROOT; allow.mount.devfs; mount.devfs; mount.fstab = "/jails/pgsql/fstab"; allow.sysvipc; allow.dying; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.prestart = "/jails/pgsql/prestart.sh"; exec.poststop = "/jails/pgsql/poststop.sh"; exec.consolelog = "/jails/pgsql/console.log"; } # Define MySQL Jail mysql { host.hostname = mysql.dweimer.local; ip4.addr = 192.168.5.9; interface = LAN; path = /jails/mysql/ROOT; allow.mount.devfs; mount.devfs; allow.sysvipc; allow.dying; mount.fstab = "/jails/mysql/fstab"; exec.start = "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.prestart = "/jails/mysql/prestart.sh"; exec.poststop = "/jails/mysql/poststop.sh"; exec.consolelog = "/jails/mysql/console.log"; } The issue I have is that the mysql jail above doesn't start at boot, I can't find any errors in any of the logs, all the other 6 start just fine. The exec.prestart and exec.poststop commands were added for troubleshooting, all they do is echo out the date and time that the command was called to the console log file for each jail. The mysql one doesn't get called at boot. All the jails cleanly shutdown when the server is shutdown, and the jail loads fine if I run jail -c mysql. I originally didn't have the jail_parallel_start="YES" set, and had the same issue. Does anyone have any clue what to look for to determine what's stopping this jail from loading at boot? -- Thanks, Dean E. Weimer http://www.dweimer.net/