procd error messages

Paul D newtwen at gmail.com
Wed Feb 14 13:28:04 PST 2024


On 2024-02-13 00:23, Hartmut Birr wrote:
> Hi,
> 
> I let /etc/init.d/network log some more things by changing:
> 
> --- network.rom 2024-02-12 20:46:51.000000000 +0100
> +++ network     2024-02-12 23:18:07.000000000 +0100
> @@ -16,8 +16,10 @@ start_service() {
>          init_switch
> 
>          procd_open_instance
> -       procd_set_param command /sbin/netifd
> +       procd_set_param command /sbin/netifd -l 5 -d 15
>          procd_set_param respawn
> +       procd_set_param stdout 1
> +       procd_set_param stderr 1
>          procd_set_param watch network.interface
>          [ -e /proc/sys/kernel/core_pattern ] && {
>                  procd_set_param limits core="unlimited"
> 
> It reports some errors by using logread -e netifd:
> 
> Mon Feb 12 23:30:27 2024 daemon.err netifd[29247]: device_claim(694): 
> Claim Network device pppoe-wan, new active count: 2
> Mon Feb 12 23:30:27 2024 daemon.err netifd[29247]: 
> proto_shell_handler(231): run setup for interface 'wan_6'
> Mon Feb 12 23:30:27 2024 daemon.err netifd[29247]: 
> __device_add_user(1037): Add user for device 'pppoe-wan', refcount=2
> Mon Feb 12 23:30:27 2024 daemon.debug pppd[24514]: Script 
> /lib/netifd/ppp6-up finished (pid 24752), status = 0x0
> Mon Feb 12 23:30:45 2024 daemon.err netifd[29247]: sh: missing ]
> Mon Feb 12 23:30:45 2024 daemon.err netifd[29247]: device_claim(694): 
> Claim Network alias pppoe-wan, new active count: 2
> Mon Feb 12 23:30:45 2024 daemon.err netifd[29247]: 
> interface_add_dns_server(1435): Add IPv6 DNS server: 2003:180:2:xxxx::yyyy
> Mon Feb 12 23:30:45 2024 daemon.err netifd[29247]: 
> interface_add_dns_server(1435): Add IPv6 DNS server: 2003:180:2:xxxx::yyyy
> Mon Feb 12 23:30:45 2024 daemon.err netifd[29247]: 
> interface_queue_event(124): Queue hotplug handler for interface 'wan_6', 
> event 'ifup'
> Mon Feb 12 23:30:45 2024 daemon.notice netifd: Interface 'wan_6' is now up
> Mon Feb 12 23:30:50 2024 daemon.err netifd[29247]: task_complete(109): 
> Complete hotplug handler for interface 'wan'
> Mon Feb 12 23:30:50 2024 daemon.err netifd[29247]: call_hotplug(100): 
> Call hotplug handler for interface 'wan', event 'ifupdate' (pppoe-wan)

Call exits netifd.

Does it go to ppp.sh?

It could be that some ' -a ' condition is breaking down...?

[ blah -a blah2 ]

?

https://git.openwrt.org/?p=project/netifd.git;a=blob;f=examples/proto/ppp.sh;hb=f01345ec13b9b27ffd314d8689fb2d3f9c81a47d


https://git.openwrt.org/?p=project/netifd.git;a=blob;f=scripts/netifd-proto.sh;h=87d337df07e9aa94b80ea53d050eadde791739d9;hb=refs/heads/master




> Mon Feb 12 23:31:05 2024 daemon.err netifd[29247]: sh: missing ]
> Mon Feb 12 23:31:07 2024 daemon.err netifd[29247]: sh: out of range
> Mon Feb 12 23:31:07 2024 daemon.err netifd[29247]: task_complete(109): 
> Complete hotplug handler for interface 'wan'
> Mon Feb 12 23:31:07 2024 daemon.err netifd[29247]: call_hotplug(100): 
> Call hotplug handler for interface 'wan_6', event 'ifup' (pppoe-wan)
> Mon Feb 12 23:31:07 2024 daemon.err netifd[29247]: /sbin/uci: Invalid 
> argument
> Mon Feb 12 23:31:16 2024 daemon.err netifd[29247]: sh: missing ]
> 
> Is it possible to let print netifd more informations related to errors 
> from executed commands like:
> 
> Mon Feb 12 23:31:05 2024 daemon.err netifd[29247]: sh: missing ]
> Mon Feb 12 23:31:07 2024 daemon.err netifd[29247]: sh: out of range
> Mon Feb 12 23:31:07 2024 daemon.err netifd[29247]: /sbin/uci: Invalid 
> argument
> 
> I'm not able to identify the executed scripts.
> 
> Regards,
> Hartmut
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel




More information about the openwrt-devel mailing list