https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296143

            Bug ID: 296143
           Summary: local_unbound do not start in jail, manul start OK
           Product: Base System
           Version: 15.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

This is a iocage jail named dns64:
/etc/rc.conf:

local_unbound_enable="YES"
rc_debug="YES"
rc_info="YES"

when start iocage jail:
iocage start dns64
the jail start ok(cron,syslog also started),but the local_unbound service do
not start.
when use cmd:
service local_unbound start
can start the service.

also the rc debug log can not find any clue for the local_unbound error.

iocage restar dns64 rc logs for this jail:

Jun 19 12:23:58 dns64 root[49862]: /etc/rc.shutdown: DEBUG: Initiating watchdog
timer.
Jun 19 12:23:58 dns64 root[54185]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/jail faststop
Jun 19 12:23:58 dns64 root[57170]: /etc/rc.shutdown: DEBUG: checkyesno:
jail_svcj is set to NO.
Jun 19 12:23:58 dns64 root[59210]: /etc/rc.shutdown: DEBUG: checkyesno:
jail_enable is set to NO.
Jun 19 12:23:58 dns64 root[60944]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/inetd faststop
Jun 19 12:23:58 dns64 root[63946]: /etc/rc.shutdown: DEBUG: pid file
(/var/run/inetd.pid): not readable.
Jun 19 12:23:58 dns64 root[65355]: /etc/rc.shutdown: DEBUG: checkyesno:
inetd_enable is set to NO.
Jun 19 12:23:58 dns64 root[66735]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/cron faststop
Jun 19 12:23:58 dns64 root[69714]: /etc/rc.shutdown: DEBUG: checkyesno:
cron_dst is set to YES.
Jun 19 12:23:58 dns64 root[72707]: /etc/rc.shutdown: DEBUG: checkyesno:
cron_svcj is set to NO.
Jun 19 12:23:58 dns64 root[75568]: /etc/rc.shutdown: DEBUG: run_rc_command:
doit: kill -TERM 55927
Jun 19 12:23:58 dns64 root[77484]: /etc/rc.shutdown: DEBUG: checkyesno:
cron_svcj is set to NO.
Jun 19 12:23:58 dns64 root[78326]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/sendmail faststop
Jun 19 12:23:58 dns64 root[81447]: /etc/rc.shutdown: DEBUG: checkyesno:
sendmail_enable is set to NO.
Jun 19 12:23:58 dns64 root[83235]: /etc/rc.shutdown: DEBUG: checkyesno:
sendmail_submit_enable is set to NO.
Jun 19 12:23:58 dns64 root[85055]: /etc/rc.shutdown: DEBUG: checkyesno:
sendmail_outbound_enable is set to NO.
Jun 19 12:23:58 dns64 root[86747]: /etc/rc.shutdown: DEBUG: checkyesno:
sendmail_msp_queue_enable is set to NO.
Jun 19 12:23:58 dns64 root[90250]: /etc/rc.shutdown: DEBUG: pid file
(/var/run/sendmail.pid): not readable.
Jun 19 12:23:58 dns64 root[92016]: /etc/rc.shutdown: DEBUG: checkyesno:
sendmail_enable is set to NO.
Jun 19 12:23:58 dns64 root[93950]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/sshd faststop
Jun 19 12:23:58 dns64 root[96237]: /etc/rc.shutdown: DEBUG: pid file
(/var/run/sshd.pid): not readable.
Jun 19 12:23:58 dns64 root[98375]: /etc/rc.shutdown: DEBUG: checkyesno:
sshd_enable is set to NO.
Jun 19 12:23:58 dns64 root[429]: /etc/rc.shutdown: DEBUG: run_rc_script
/usr/local/etc/rc.d/unbound_exporter faststop
Jun 19 12:23:58 dns64 root[4258]: /etc/rc.shutdown: DEBUG: checkyesno:
unbound_exporter_svcj is set to NO.
Jun 19 12:23:58 dns64 root[7192]: /etc/rc.shutdown: DEBUG: run_rc_command:
doit: kill -TERM 22801
Jun 19 12:23:58 dns64 root[10091]: /etc/rc.shutdown: DEBUG: checkyesno:
unbound_exporter_svcj is set to NO.
Jun 19 12:23:58 dns64 root[12347]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/utx faststop
Jun 19 12:23:58 dns64 root[16161]: /etc/rc.shutdown: DEBUG: checkyesno:
utx_enable is set to YES.
Jun 19 12:23:58 dns64 root[18016]: /etc/rc.shutdown: DEBUG: checkyesno:
utx_svcj is set to NO.
Jun 19 12:23:58 dns64 root[19970]: /etc/rc.shutdown: DEBUG: run_rc_command:
doit:  utx shutdown 
Jun 19 12:23:58 dns64 root[22286]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/rwho faststop
Jun 19 12:23:58 dns64 root[24782]: /etc/rc.shutdown: DEBUG: checkyesno:
rwhod_svcj is set to NO.
Jun 19 12:23:58 dns64 root[26766]: /etc/rc.shutdown: DEBUG: checkyesno:
rwhod_enable is set to NO.
Jun 19 12:23:58 dns64 root[27718]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/nscd faststop
Jun 19 12:23:58 dns64 root[33560]: /etc/rc.shutdown: DEBUG: checkyesno:
nscd_svcj is set to NO.
Jun 19 12:23:58 dns64 root[37033]: /etc/rc.shutdown: DEBUG: checkyesno:
nscd_enable is set to NO.
Jun 19 12:23:58 dns64 root[38465]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/local faststop
Jun 19 12:23:58 dns64 root[42210]: /etc/rc.shutdown: DEBUG: checkyesno:
local_svcj is set to NO.
Jun 19 12:23:58 dns64 root[43474]: /etc/rc.shutdown: DEBUG: run_rc_command:
doit:  local_stop 
Jun 19 12:23:58 dns64 root[45816]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/ftp-proxy faststop
Jun 19 12:23:58 dns64 root[50372]: /etc/rc.shutdown: DEBUG: checkyesno:
ftpproxy_svcj is set to NO.
Jun 19 12:23:58 dns64 root[53366]: /etc/rc.shutdown: DEBUG: checkyesno:
ftpproxy_enable is set to NO.
Jun 19 12:23:58 dns64 root[54336]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/lpd faststop
Jun 19 12:23:58 dns64 root[58632]: /etc/rc.shutdown: DEBUG: checkyesno:
lpd_svcj is set to NO.
Jun 19 12:23:58 dns64 root[61812]: /etc/rc.shutdown: DEBUG: checkyesno:
lpd_enable is set to NO.
Jun 19 12:23:58 dns64 root[62906]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/yppasswdd faststop
Jun 19 12:23:58 dns64 root[66325]: /etc/rc.shutdown: DEBUG: checkyesno:
yppasswdd_svcj is set to NO.
Jun 19 12:23:58 dns64 root[69450]: /etc/rc.shutdown: DEBUG: checkyesno:
nis_yppasswdd_enable is set to NO.
Jun 19 12:23:58 dns64 root[71985]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/ypset faststop
Jun 19 12:23:58 dns64 root[74609]: /etc/rc.shutdown: DEBUG: checkyesno:
ypset_svcj is set to NO.
Jun 19 12:23:58 dns64 root[77061]: /etc/rc.shutdown: DEBUG: checkyesno:
nis_ypset_enable is set to NO.
Jun 19 12:23:58 dns64 root[78589]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/ypldap faststop
Jun 19 12:23:58 dns64 root[81827]: /etc/rc.shutdown: DEBUG: checkyesno:
ypldap_svcj is set to NO.
Jun 19 12:23:58 dns64 root[85098]: /etc/rc.shutdown: DEBUG: checkyesno:
nis_ypldap_enable is set to NO.
Jun 19 12:23:58 dns64 root[86304]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/ypxfrd faststop
Jun 19 12:23:58 dns64 root[89642]: /etc/rc.shutdown: DEBUG: checkyesno:
ypxfrd_svcj is set to NO.
Jun 19 12:23:58 dns64 root[92284]: /etc/rc.shutdown: DEBUG: checkyesno:
nis_ypxfrd_enable is set to NO.
Jun 19 12:23:58 dns64 root[94336]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/ypbind faststop
Jun 19 12:23:58 dns64 root[97956]: /etc/rc.shutdown: DEBUG: checkyesno:
ypbind_svcj is set to NO.
Jun 19 12:23:58 dns64 root[99941]: /etc/rc.shutdown: DEBUG: checkyesno:
nis_client_enable is set to NO.
Jun 19 12:23:58 dns64 root[1044]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/ypupdated faststop
Jun 19 12:23:58 dns64 root[6861]: /etc/rc.shutdown: DEBUG: checkyesno:
ypupdated_svcj is set to NO.
Jun 19 12:23:58 dns64 root[8383]: /etc/rc.shutdown: DEBUG: checkyesno:
rpc_ypupdated_enable is set to NO.
Jun 19 12:23:58 dns64 root[10315]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/ypserv faststop
Jun 19 12:23:58 dns64 root[13485]: /etc/rc.shutdown: DEBUG: checkyesno:
ypserv_svcj is set to NO.
Jun 19 12:23:58 dns64 root[16097]: /etc/rc.shutdown: DEBUG: checkyesno:
nis_server_enable is set to NO.
Jun 19 12:23:58 dns64 root[17694]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/rpcbind faststop
Jun 19 12:23:58 dns64 root[21361]: /etc/rc.shutdown: DEBUG: checkyesno:
rpcbind_svcj is set to NO.
Jun 19 12:23:58 dns64 root[24219]: /etc/rc.shutdown: DEBUG: checkyesno:
rpcbind_enable is set to NO.
Jun 19 12:23:58 dns64 root[26035]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/kadmind faststop
Jun 19 12:23:58 dns64 root[27611]: /etc/rc.shutdown: DEBUG: set_rcvar_obsolete:
$kadmind5_server_enable(old) -> $kadmind_enable(new) is defined
Jun 19 12:23:58 dns64 root[29022]: /etc/rc.shutdown: DEBUG: set_rcvar_obsolete:
$kadmind5_server(old) -> $kadmind_program(new) is defined
Jun 19 12:23:58 dns64 root[30607]: /etc/rc.shutdown: DEBUG: set_rcvar_obsolete:
$kerberos5_server_enable(old) -> $kdc_enable(new) is defined
Jun 19 12:23:58 dns64 root[33351]: /etc/rc.shutdown: DEBUG: checkyesno:
kadmind_svcj is set to NO.
Jun 19 12:23:58 dns64 root[35236]: /etc/rc.shutdown: DEBUG: checkyesno:
kadmind_enable is set to NO.
Jun 19 12:23:58 dns64 root[37645]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/virtual_oss faststop
Jun 19 12:23:58 dns64 root[40544]: /etc/rc.shutdown: DEBUG: checkyesno:
virtual_oss_svcj is set to NO.
Jun 19 12:23:58 dns64 root[42707]: /etc/rc.shutdown: DEBUG: checkyesno:
virtual_oss_enable is set to NO.
Jun 19 12:23:58 dns64 root[44618]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/kdc faststop
Jun 19 12:23:58 dns64 root[47587]: /etc/rc.shutdown: DEBUG: set_rcvar_obsolete:
$kerberos5_server_enable(old) -> $kdc_enable(new) is defined
Jun 19 12:23:58 dns64 root[49251]: /etc/rc.shutdown: DEBUG: set_rcvar_obsolete:
$kerberos5_server(old) -> $kdc_program(new) is defined
Jun 19 12:23:58 dns64 root[51564]: /etc/rc.shutdown: DEBUG: set_rcvar_obsolete:
$kerberos5_server_flags(old) -> $kdc_flags(new) is defined
Jun 19 12:23:58 dns64 root[54009]: /etc/rc.shutdown: DEBUG: checkyesno:
kdc_svcj is set to NO.
Jun 19 12:23:58 dns64 root[56391]: /etc/rc.shutdown: DEBUG: checkyesno:
kdc_enable is set to NO.
Jun 19 12:23:58 dns64 root[58385]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/local_unbound faststop
Jun 19 12:23:58 dns64 root[62502]: /etc/rc.shutdown: DEBUG: checkyesno:
local_unbound_svcj is set to NO.
Jun 19 12:23:58 dns64 root[66090]: /etc/rc.shutdown: DEBUG: run_rc_command:
doit: kill -TERM 75043
Jun 19 12:23:59 dns64 root[68520]: /etc/rc.shutdown: DEBUG: checkyesno:
local_unbound_svcj is set to NO.
Jun 19 12:23:59 dns64 root[70356]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/localpkg faststop
Jun 19 12:23:59 dns64 root[72966]: /etc/rc.shutdown: DEBUG: checkyesno:
localpkg_svcj is set to NO.
Jun 19 12:23:59 dns64 root[74622]: /etc/rc.shutdown: DEBUG: run_rc_command:
doit:  pkg_stop 
Jun 19 12:23:59 dns64 root[78360]: /etc/rc.shutdown: DEBUG: run_rc_script
/etc/rc.d/var_run faststop
Jun 19 12:23:59 dns64 root[82089]: /etc/rc.shutdown: DEBUG: checkyesno:
var_run_enable is set to YES.
Jun 19 12:23:59 dns64 root[84469]: /etc/rc.shutdown: DEBUG: checkyesno:
var_run_svcj is set to NO.
Jun 19 12:23:59 dns64 root[86549]: /etc/rc.shutdown: DEBUG: run_rc_command:
doit:  _var_run_stop 
Jun 19 12:23:59 dns64 root[87991]: /etc/rc.shutdown: DEBUG: checkyesno:
var_run_autosave is set to YES.
Jun 19 12:23:59 dns64 syslogd: exiting on signal 15
Jun 19 12:24:00 dns64 syslogd: kernel boot file is /boot/kernel/kernel
Jun 19 12:24:00 dns64 root[72280]: /etc/rc: DEBUG: checkyesno: pwcheck_svcj is
set to NO.
Jun 19 12:24:00 dns64 root[74511]: /etc/rc: DEBUG: run_rc_command: doit: 
pwcheck_start 
Jun 19 12:24:00 dns64 root[77487]: /etc/rc: DEBUG: checkyesno: rpcbind_enable
is set to NO.
Jun 19 12:24:00 dns64 root[81629]: /etc/rc: DEBUG: checkyesno: nisdomain_svcj
is set to NO.
Jun 19 12:24:00 dns64 root[83094]: /etc/rc: DEBUG: run_rc_command: doit: 
nisdomain_start 
Jun 19 12:24:00 dns64 root[84777]: /etc/rc: DEBUG: checkyesno:
nis_server_enable is set to NO.
Jun 19 12:24:00 dns64 root[88023]: /etc/rc: DEBUG: checkyesno:
rpc_ypupdated_enable is set to NO.
Jun 19 12:24:00 dns64 root[90843]: /etc/rc: DEBUG: checkyesno:
nis_client_enable is set to NO.
Jun 19 12:24:00 dns64 root[92500]: /etc/rc: DEBUG: checkyesno:
nis_ypxfrd_enable is set to NO.
Jun 19 12:24:00 dns64 root[96628]: /etc/rc: DEBUG: checkyesno:
nis_ypldap_enable is set to NO.
Jun 19 12:24:00 dns64 root[99829]: /etc/rc: DEBUG: checkyesno: nis_ypset_enable
is set to NO.
Jun 19 12:24:00 dns64 root[2134]: /etc/rc: DEBUG: checkyesno:
nis_yppasswdd_enable is set to NO.
Jun 19 12:24:00 dns64 root[6622]: /etc/rc: DEBUG: checkyesno: lpd_enable is set
to NO.
Jun 19 12:24:00 dns64 root[12797]: /etc/rc: DEBUG: checkyesno: nscd_enable is
set to NO.
Jun 19 12:24:00 dns64 root[15261]: /etc/rc: DEBUG: checkyesno: ftpproxy_enable
is set to NO.
Jun 19 12:24:00 dns64 root[18937]: /etc/rc: DEBUG: checkyesno: rwhod_enable is
set to NO.
Jun 19 12:24:00 dns64 root[21871]: /etc/rc: DEBUG: checkyesno: utx_enable is
set to YES.
Jun 19 12:24:00 dns64 root[23457]: /etc/rc: DEBUG: checkyesno: utx_svcj is set
to NO.
Jun 19 12:24:00 dns64 root[25818]: /etc/rc: DEBUG: run_rc_command: doit:  utx
boot 
Jun 19 12:24:00 dns64 root[29118]: /etc/rc: DEBUG: checkyesno: local_svcj is
set to NO.
Jun 19 12:24:00 dns64 root[30665]: /etc/rc: DEBUG: run_rc_command: doit: 
local_start 
Jun 19 12:24:00 dns64 root[33588]: /etc/rc: DEBUG: checkyesno: inetd_enable is
set to NO.
Jun 19 12:24:00 dns64 root[36199]: /etc/rc: DEBUG: checkyesno:
unbound_exporter_enable is set to YES.
Jun 19 12:24:00 dns64 root[37808]: /etc/rc: DEBUG: checkyesno:
unbound_exporter_svcj is set to NO.
Jun 19 12:24:00 dns64 root[39005]: /etc/rc: DEBUG: checkyesno: rc_startmsgs is
set to YES.
Jun 19 12:24:00 dns64 root[40924]: /etc/rc: DEBUG: checkyesno:
unbound_exporter_svcj is set to NO.
Jun 19 12:24:00 dns64 root[42806]: /etc/rc: DEBUG: run_rc_command: doit: 
limits -C daemon   /usr/sbin/daemon  -c -f -P /var/run/unbound_exporter.pid -u
unbound             -S              /usr/local/bin/unbound_exporter        
-unbound.ca ''  -unbound.cert ''        -unbound.host
unix:///var/run/local_unbound.ctl      -unbound.key ''        
-web.listen-address 192.168.xx.xx:xx          
Jun 19 12:24:00 dns64 root[46649]: /etc/rc: DEBUG: checkyesno:
sysctl_lastload_svcj is set to NO.
Jun 19 12:24:00 dns64 root[48114]: /etc/rc: DEBUG: run_rc_command: doit: 
/etc/rc.d/sysctl lastload 
Jun 19 12:24:00 dns64 root[57157]: /etc/rc.d/sysctl: DEBUG: checkyesno:
sysctl_svcj is set to NO.
Jun 19 12:24:00 dns64 root[59687]: /etc/rc.d/sysctl: DEBUG: checkyesno:
sysctl_svcj is set to NO.
Jun 19 12:24:00 dns64 daemon[43331]: level=info ts=2026-06-19T04:24:00.348Z
caller=unbound_exporter.go:551 Startingunbound_exporter=(MISSING)
Jun 19 12:24:00 dns64 daemon[43331]: level=info ts=2026-06-19T04:24:00.350Z
caller=unbound_exporter.go:569 Listeningonaddress:port>=192.168.xx.xx:xxx
Jun 19 12:24:00 dns64 root[61813]: /etc/rc.d/sysctl: DEBUG: run_rc_command:
doit:  sysctl_start last 
Jun 19 12:24:00 dns64 root[65866]: /etc/rc: DEBUG: checkyesno: sshd_enable is
set to NO.
Jun 19 12:24:00 dns64 root[68267]: /etc/rc: DEBUG: checkyesno: sendmail_enable
is set to NO.
Jun 19 12:24:00 dns64 root[69454]: /etc/rc: DEBUG: checkyesno:
sendmail_submit_enable is set to NO.
Jun 19 12:24:00 dns64 root[71149]: /etc/rc: DEBUG: checkyesno:
sendmail_outbound_enable is set to NO.
Jun 19 12:24:00 dns64 root[72739]: /etc/rc: DEBUG: checkyesno:
sendmail_msp_queue_enable is set to NO.
Jun 19 12:24:00 dns64 root[75519]: /etc/rc: DEBUG: checkyesno: sendmail_enable
is set to NO.
Jun 19 12:24:00 dns64 root[78195]: /etc/rc: DEBUG: checkyesno: cron_dst is set
to YES.
Jun 19 12:24:00 dns64 root[80790]: /etc/rc: DEBUG: checkyesno: cron_enable is
set to YES.
Jun 19 12:24:00 dns64 root[82599]: /etc/rc: DEBUG: checkyesno: cron_svcj is set
to NO.
Jun 19 12:24:00 dns64 root[83453]: /etc/rc: DEBUG: checkyesno: rc_startmsgs is
set to YES.
Jun 19 12:24:00 dns64 root[84571]: /etc/rc: DEBUG: checkyesno: cron_svcj is set
to NO.
Jun 19 12:24:00 dns64 root[85136]: /etc/rc: DEBUG: run_rc_command: doit: 
limits -C daemon   /usr/sbin/cron  -J 15 -s 
Jun 19 12:24:00 dns64 root[89346]: /etc/rc: DEBUG: checkyesno: msgs_svcj is set
to NO.
Jun 19 12:24:00 dns64 root[92072]: /etc/rc: DEBUG: run_rc_command: doit: 
msgs_start 
Jun 19 12:24:00 dns64 root[95709]: /etc/rc: DEBUG: checkyesno: jail_enable is
set to NO.
Jun 19 12:24:00 dns64 root[99404]: /etc/rc: DEBUG: checkyesno:
kern_securelevel_enable is set to NO.
Jun 19 12:24:03 dns64 daemon[43331]: level=error ts=2026-06-19T04:24:03.819Z
caller=unbound_exporter.go:532 Failedtoscrapesocket:="dial unix
/var/run/local_unbound.ctl: connect: no such file or directory"


manul start local_unbound logs by service local_unbound start:

Jun 19 12:30:06 dns64 root[2971]: /etc/rc.d/local_unbound: DEBUG: pid file
(/var/run/local_unbound.pid): not readable.
Jun 19 12:30:06 dns64 root[4666]: /etc/rc.d/local_unbound: DEBUG: checkyesno:
local_unbound_enable is set to YES.
Jun 19 12:30:06 dns64 root[6893]: /etc/rc.d/local_unbound: DEBUG:
run_rc_command: start_precmd: local_unbound_prestart 
Jun 19 12:30:06 dns64 root[9469]: /etc/rc.d/local_unbound: DEBUG: checkyesno:
local_unbound_svcj is set to NO.
Jun 19 12:30:06 dns64 root[10816]: /etc/rc.d/local_unbound: DEBUG: checkyesno:
local_unbound_svcj is set to NO.
Jun 19 12:30:06 dns64 root[12497]: /etc/rc.d/local_unbound: DEBUG:
run_rc_command: doit:  limits -C daemon   /usr/sbin/local-unbound -c
/var/unbound/unbound.conf 
Jun 19 12:30:06 dns64 root[15267]: /etc/rc.d/local_unbound: DEBUG:
run_rc_command: start_postcmd: local_unbound_poststart

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to