From: "Christian Ruppert (idl0r)" <idl0r@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/bind/files: named.init-r10
Date: Thu, 3 Mar 2011 20:18:11 +0000 (UTC) [thread overview]
Message-ID: <20110303201811.42DAE20054@flycatcher.gentoo.org> (raw)
idl0r 11/03/03 20:18:11
Modified: named.init-r10
Log:
Check chroot on restart.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Revision Changes Path
1.3 net-dns/bind/files/named.init-r10
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/files/named.init-r10?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/files/named.init-r10?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/files/named.init-r10?r1=1.2&r2=1.3
Index: named.init-r10
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-dns/bind/files/named.init-r10,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- named.init-r10 27 Feb 2011 22:27:48 -0000 1.2
+++ named.init-r10 3 Mar 2011 20:18:11 -0000 1.3
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/files/named.init-r10,v 1.2 2011/02/27 22:27:48 idl0r Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/files/named.init-r10,v 1.3 2011/03/03 20:18:11 idl0r Exp $
opts="start stop reload restart checkconfig checkzones"
@@ -174,6 +174,14 @@
# Workaround for now, until openrc's restart has been fixed.
# openrc doesn't care about a restart() function in init scripts.
if [ "${RC_CMD}" = "restart" ]; then
+ if [ -n "${CHROOT}" -a ${CHROOT_NOCHECK:-0} -eq 0 ]; then
+ check_chroot || {
+ eend 1
+ eerror "Your chroot dir ${CHROOT} is inconsistent, please run 'emerge --config net-dns/bind' first"
+ return 1
+ }
+ fi
+
checkconfig || { eend 1; return 1; }
fi
next reply other threads:[~2011-03-03 20:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 20:18 Christian Ruppert (idl0r) [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-12-24 22:45 [gentoo-commits] gentoo-x86 commit in net-dns/bind/files: named.init-r10 Christian Ruppert (idl0r)
2011-03-10 17:06 Christian Ruppert (idl0r)
2011-02-27 22:27 Christian Ruppert (idl0r)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110303201811.42DAE20054@flycatcher.gentoo.org \
--to=idl0r@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox