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
                         
[email protected]:/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. 
     
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,
-- 
clematis (0x7e96fd2400fe7b59)

Reply via email to