On Fri, Dec 20 2019, clematis <clema...@insiberia.net> wrote: > Synopsis: rcctl start returns (ok) but daemon is not started > Category: rcctl / getaddrinfo > Environment: > System : OpenBSD 6.6 > Details : OpenBSD 6.6-current (GENERIC.MP) #386: Wed Dec 18 > 14:42:08 MST 2019 > > dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP > Architecture: OpenBSD.arm64 > Machine : arm64 (it is a pine64-lts) > > Description: > Starting the package geomyidae with rcctl start returns an (ok) but no > geomyidae process is actually being started. Running directly geomyidae > with options identical to the "daemon_flags=" of the rc script works > just fine. > > How-To-Repeat: > I can only repeat this issue on arm64. (Everything works as expected on > amd64 similar -current from 18th Dec and same package version). > # pkg_add geomyidae > # rcctl start geomyidae > geomyidae(ok) > # ps aux|grep geomyidae > => No daemon started despite the (ok) return. > # rcctl -d start geomyidae > doing _rc_parse_conf > doing _rc_quirks > geomyidae_flags empty, using default >-l /var/log/geomyidae.log -u > _geomyidae -g _geomyidae< > doing _rc_parse_conf /var/run/rc.d/geomyidae > doing _rc_quirks > doing rc_check > geomyidae > doing rc_start > doing _rc_wait start > doing rc_check > getaddrinfo (lo0:70): no address associated with name > doing _rc_write_runfile > (ok) > > => what's this getaddrinfo message? > ifconfig lo0 is absolutely standard > /etc/hosts as well > pf got a set skip on lo0 > (same settings on the amd64 box on which I can't reproduce this). > /var/log/geomyidae.log is setup with the right user and group. > pkg_delete does delete properly the rc script. I've tried to reinstall > the package, install goes OK but still won't start with rcctl.
I suspect you have something funny in your /root/.profile (which is read by the shell process that starts geomyidae). Does temporarily moving away your /root/.profile fix the issue? geomyidae starts properly with rcctl in a fresh vm here. > > Fix: > I don't have a fix. > The workaround to start this specific package/daemon is to run it > manually. > # geomyidae -l /var/log/geomyidae.log -u _geomyidae -g _geomyidae > (All other available options work too). > > Thanks. > Regards, -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE