Question about port startup, /usr/local/etc/rc.conf.d

Patrick M. Hausen hausen at punkt.de
Wed Nov 6 08:45:52 UTC 2019


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 at 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 at 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 at gimli:/usr/local/etc/rc.conf.d # cat dbus hald
dbus_enable="YES"
hald_enable="YES"

The problem I encountered is this:

root at gimli:~ # service dbus restart
Stopping dbus.
Waiting for PIDS: 33301.
Starting dbus.
root at 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?

Kind regards,
Patrick
-- 
punkt.de GmbH			Internet - Dienstleistungen - Beratung
Kaiserallee 13a			Tel.: 0721 9109-0 Fax: -100
76133 Karlsruhe			info at punkt.de	http://punkt.de
AG Mannheim 108285		Gf: Juergen Egeling



More information about the freebsd-ports mailing list