From owner-freebsd-questions@freebsd.org Thu Feb 6 23:40:52 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3ABE223DFE2 for ; Thu, 6 Feb 2020 23:40:52 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48DFLC0gwcz3Mjc for ; Thu, 6 Feb 2020 23:40:50 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([188.102.101.170]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPA (Nemesis) id 1MDhQt-1iqk4a0iMZ-00AoIj; Fri, 07 Feb 2020 00:40:35 +0100 Date: Fri, 7 Feb 2020 00:40:34 +0100 From: Polytropon To: "D'Arcy Cain" Cc: freebsd-questions@freebsd.org Subject: Re: Mounting /usr/local from NFS Message-Id: <20200207004034.7c771dc5.freebsd@edvax.de> In-Reply-To: <1becbc20-493d-4be0-da50-31cf556ae61f@druid.net> References: <1becbc20-493d-4be0-da50-31cf556ae61f@druid.net> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:qTxnQRecRQiUWez8on9vtXacqm1oeXQBSfB/0eFC0uPYtODqRq+ CZWa1jLaiQJNPZQyU9roUf4FTOkPypcQa1aEY8iz2++9Qq5NfatiVltLq+k6/lUBNeUspfI RCubZn5XdVGEYdnUz4VaCaZMKhkGulOT1eQ1O4FnB/wyEI6r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none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.126.187) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.57 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[170.101.102.188.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.85)[0.846,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.999,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[187.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[187.126.227.212.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.32)[ip: (0.51), ipnet: 212.227.0.0/16(-1.11), asn: 8560(2.24), country: DE(-0.02)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Feb 2020 23:40:52 -0000 On Thu, 6 Feb 2020 14:12:30 -0600, D'Arcy Cain wrote: > I am not sure why I am having a problem but it may be related to this. > I am mounting /usr/local from a master machine in the office. I also > mount /home and a few local directories. Everything seems to work OK > except that local rc.d scripts aren't running. For example, I have > xdm_enable set in rc.conf but when I boot it doesn't start. I look at > /var/log/messages and I don't see anything about xdm, not even errors. > > After it boots I can do "service xdm restart" and it starts just fine. > > I wonder if this is because /usr/local is mounted too late for rc to see > the scripts in /usr/local/etc/rc.d. I tried to figure out the variable > "mountcritremote" but I can't find any documentation on it. I tried > setting it to "YES" and "/usr/local" but it didn't help. > > The same issue happens with postfix which is the other program I am > running from ports. > > So, first question is, does this seem like a likely explanation for what > I am seeing? Looks like it. > Second question is how do I fix this either way? A solution would be to use /etc/rc.local, which should contain the following: #!/bin/sh /sbin/mount for SERVICE in "postfix xdm