From owner-freebsd-ports@freebsd.org Wed Nov 6 11:40:09 2019 Return-Path: Delivered-To: freebsd-ports@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 75B431B34CC for ; Wed, 6 Nov 2019 11:40:09 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 477Pj41sB1z405q for ; Wed, 6 Nov 2019 11:40:07 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mail-wr1-x429.google.com with SMTP id e6so23500686wrw.1 for ; Wed, 06 Nov 2019 03:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamw-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8QWmPLjne+VK8BMhLALHDKb6z+GCzzG5N1Yytl6wy3E=; b=WdxjWwHQcOJdZHYN9kBo58MGaA/9Dg+A4vl1CEeVJ3PxiZ5qX5bb2MizkwJWNKmqpk ggdHItklLAR3Zhtlhp71KTlBkMG+DTm+YuuKlRe+BDGjnfFR+EOfDJqcbZHlyLbjQldZ VJ4+oFO/3HQZbkWHLv8P80OqxAW19LTdkQ2o2I0WR2q1+6P5vpE27DMlcH5i7HUoKkFG pmlfz/TbBzgiZApQv6Tix18d9hY1F68rENunuoAGPQ2vwrM7kzIzkjfe6B8N4MQd0vBN eXAbUiNxoo9xt2ftGdGTlB9FJlxrS+6Gzj0tDC+PGVo493hafpOS3OE/Pn6OihACZ/AY g+Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8QWmPLjne+VK8BMhLALHDKb6z+GCzzG5N1Yytl6wy3E=; b=I0BzkQV2BfgU65FwEK9srbhzE6Gv1xrozPZYvIyWnk4n2v7p55DUYwXyaRrkXFCnDl oYML/tNy77OEWL3Ax9+czWLyDrLJUBE8+3c4URSRCBbQLC35EBVbldlpqU5VrcrpKWHP Zd9b4dhTB80Dq9x0Y2paeZRGKb6zOhAjkr9Kvx4ILORim5qbWFZ4bcs9ARHaGFcFORUz Wd4NDcfs+roHColA60aWXtK2dFyyRC6Z58BwWv+YTsrW1bOFU7mNXeRgokZFvk7OYu61 pMhWf4hQwzV9PfdJ3REyamSAFSUS7AYl2whzrsMaKuUgLX2HfursLUGZojDJHNIV8Gek 9nIA== X-Gm-Message-State: APjAAAWPqbtLzOaRdu4R+gI+ICLthnzPA+8EwtIjz/2hWZBvxfmiI6P4 M9IAwokoldkhhDJgNnBhj0qoA2Pq3/nCF/MqfX57fjgBBlE= X-Google-Smtp-Source: APXvYqxH6UtltplBh2WQGEmOLCryS+aXbUIKJlzSRI3DlK7oeCFu8RfCyWiJ+Dij9/y2Z0gIlXeina7Rr5kUbxiHhwY= X-Received: by 2002:a5d:530f:: with SMTP id e15mr2325631wrv.119.1573040405911; Wed, 06 Nov 2019 03:40:05 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adam Weinberger Date: Wed, 6 Nov 2019 04:39:49 -0700 Message-ID: Subject: Re: Question about port startup, /usr/local/etc/rc.conf.d To: "Patrick M. Hausen" Cc: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 477Pj41sB1z405q X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adamw-org.20150623.gappssmtp.com header.s=20150623 header.b=WdxjWwHQ; dmarc=none; spf=pass (mx1.freebsd.org: domain of adamw@adamw.org designates 2a00:1450:4864:20::429 as permitted sender) smtp.mailfrom=adamw@adamw.org X-Spamd-Result: default: False [-5.34 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[adamw-org.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[adamw.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[adamw-org.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[9.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.84)[ip: (-9.35), ipnet: 2a00:1450::/32(-2.77), asn: 15169(-2.02), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2019 11:40:09 -0000 On Wed, Nov 6, 2019 at 1:45 AM Patrick M. Hausen wrote: > > Hi, all, > > with new installations I started to keep an empty /etc/rc.conf and put > all settings into /etc/rc.conf.d and /usr/local/etc/rc.conf.d. > > Example: > > root@gimli:~ # ll /etc/rc.conf.d > total 4 > -rw-r--r-- 1 root wheel 13 Nov 2 15:07 dumpon > -rw-r--r-- 1 root wheel 17 Nov 2 15:06 hostname > -rw-r--r-- 1 root wheel 38 Nov 2 22:12 moused > -rw-r--r-- 1 root wheel 66 Nov 2 22:28 network > -rw-r--r-- 1 root wheel 43 Nov 2 15:10 ntpd > -rw-r--r-- 1 root wheel 18 Nov 2 15:06 sshd > -rw-r--r-- 1 root wheel 12 Nov 2 15:06 syscons > -rw-r--r-- 1 root wheel 17 Nov 2 15:07 zfs > > root@gimli:~ # ll /usr/local/etc/rc.conf.d > total 2 > -rw-r--r-- 1 root wheel 26 Nov 2 15:42 avahi_daemon > -rw-r--r-- 1 root wheel 18 Nov 2 15:43 dbus > -rw-r--r-- 1 root wheel 18 Nov 6 08:58 hald > > The dbus and hald files contain only the "enable" setting for the respective > service: > > root@gimli:/usr/local/etc/rc.conf.d # cat dbus hald > dbus_enable="YES" > hald_enable="YES" > > The problem I encountered is this: > > root@gimli:~ # service dbus restart > Stopping dbus. > Waiting for PIDS: 33301. > Starting dbus. > root@gimli:~ # service hald restart > Stopping hald. > Waiting for PIDS: 33369. > /usr/local/etc/rc.d/hald: WARNING: $dbus_enable is not set properly - see rc.conf(5). > Starting hald. > > As you can see dbus is properly enabled and starting. Is the warning > a bug in the rc.d/hald script I should file a bug report for? Hi Patrick, It's a limitation of rc(8) itself. The problem is that rc(8) only gives rc.d/hald access to etc/rc.conf.d/hald. It doesn't load etc/rc.conf.d/dbus at all. You'll need to duplicate the dbus info into rc.conf.d/hald. # Adam -- Adam Weinberger adamw@adamw.org https://www.adamw.org