Solved service dbus not working in 13.2

Please share outputs from these three commands:
  1. freebsd-version -kru ; uname -aKU
  2. pkg -vv | grep -e url -e enabled -e priority
  3. bectl list -c creation
 
Thanx for response.
13.2-RELEASE-p4 GENERIC amd64 1302001 1302001
and it doesn't use zfs. The service program seems to say it thinks local_startup is /etc/rc.d instead of /usr/local/etc/rc.d

Code:
# service dbus start
dbus does not exist in /etc/rc.d or the local startup
directories (/etc/rc.d), or is not executable
 
Code:
# pkg -vv | grep -e url -e enabled -e priority
    url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest",
    enabled         : yes,
    priority        : 0,

# pkg iinfo dbus
dbus-1.14.10,1
dbus-glib-0.112
libdbusmenu-16.04.0_7
py39-dbus-1.3.2
pydbus-common-1.3.2
qt5-dbus-5.15.11p135
 
file /usr/local/etc/rc.d/dbus

Also, start in single user mode and then:

fsck -fn

For the UFS file system, is anything to be repaired? If so, please refrain from doing so (what's reported might be useful for diagnosis).
 
# file /usr/local/etc/rc.d/dbus
/usr/local/etc/rc.d/dbus: POSIX shell script, ASCII text executable

And the file system is fine, dbus had to be anyway because otherwise the system would have screamed when I deinstalled & re-installed dbus as one of the early tests. The problem continues to appear to be that service is not looking in the /usr/local/etc/rc.d directory.
 
Thanx for suggestion, you've lead to the crux of the problem.
It appears that the upgrade has removed
: ${_localbase:="/usr/local"}
from /etc/defaults/rc.conf
The upgrade has possibly done it due to the preferred editor being set to ee, but that's a topic for another person to address.

Code:
# grep directories /usr/sbin/service
echo "directories (${local_startup}), or is not executable"

# grep localbase /etc/defaults/rc.conf
local_startup="${_localbase}/etc/rc.d" # startup script dirs.

# grep local /etc/rc.conf
root@dobby:/home/andrew #

# grep localbase /etc/defaults/rc.conf
local_startup="${_localbase}/etc/rc.d" # startup script dirs.
 
Back
Top