[rootfs] `service` failed with error `Command failed: Not found`
# ps
PID USER VSZ STAT COMMAND
1 root 1204 S /bin/ash --login
2558 root 984 S ubusd
2584 root 1172 S rpcd -s /var/run/ubus/ubus.sock -t 30
3599 root 1192 R ps
# service
Usage: service <service> [command]
Command failed: Not found
/etc/init.d/boot enabled stopped
Command failed: Not found
/etc/init.d/cron enabled stopped
Command failed: Not found
/etc/init.d/dnsmasq enabled stopped
Command failed: Not found
/etc/init.d/done enabled stopped
Command failed: Not found
/etc/init.d/dropbear enabled stopped
Command failed: Not found
/etc/init.d/firewall enabled stopped
Command failed: Not found
/etc/init.d/gpio_switch enabled stopped
Command failed: Not found
/etc/init.d/led enabled stopped
Command failed: Not found
/etc/init.d/log enabled stopped
Command failed: Not found
/etc/init.d/network enabled stopped
Command failed: Not found
/etc/init.d/odhcpd enabled stopped
Command failed: Not found
/etc/init.d/packet_steering enabled stopped
Command failed: Not found
/etc/init.d/rpcd enabled stopped
Command failed: Not found
/etc/init.d/sysctl enabled stopped
Command failed: Not found
/etc/init.d/sysfixtime enabled stopped
Command failed: Not found
/etc/init.d/sysntpd enabled stopped
Command failed: Not found
/etc/init.d/system enabled stopped
Command failed: Not found
/etc/init.d/umount enabled stopped
Command failed: Not found
/etc/init.d/urandom_seed enabled stopped
Command failed: Not found
/etc/init.d/urngd enabled stopped
I am also having this issue. Have tried to run /etc/init.d/boot boot and other services manually but they do not work.
I am having this issue with
podman run -it -p 8020:80 --name openwrt-hacking openwrt/rootfs:x86_64-23.05.5
/ # mkdir -p /var/run/
/ # mkdir -p /var/lock/
/ # ubusd & ash --login
root@b1d18a9dc48f:/# service
Usage: service <service> [command]
Command failed: Not found
/etc/init.d/boot enabled stopped
Command failed: Not found
/etc/init.d/cron enabled stopped
Command failed: Not found
/etc/init.d/dnsmasq enabled stopped
Command failed: Not found
/etc/init.d/done enabled stopped
Command failed: Not found
/etc/init.d/dropbear enabled stopped
Command failed: Not found
/etc/init.d/firewall enabled stopped
Command failed: Not found
/etc/init.d/gpio_switch enabled stopped
Command failed: Not found
/etc/init.d/led enabled stopped
Command failed: Not found
/etc/init.d/log enabled stopped
Command failed: Not found
/etc/init.d/network enabled stopped
Command failed: Not found
/etc/init.d/odhcpd enabled stopped
Command failed: Not found
/etc/init.d/packet_steering enabled stopped
Command failed: Not found
/etc/init.d/rpcd enabled stopped
Command failed: Not found
/etc/init.d/sysctl enabled stopped
Command failed: Not found
/etc/init.d/sysfixtime enabled stopped
Command failed: Not found
/etc/init.d/sysntpd enabled stopped
Command failed: Not found
/etc/init.d/system enabled stopped
Command failed: Not found
/etc/init.d/ucitrack enabled stopped
Command failed: Not found
/etc/init.d/uhttpd enabled stopped
Command failed: Not found
/etc/init.d/umount enabled stopped
Command failed: Not found
/etc/init.d/urandom_seed enabled stopped
Command failed: Not found
/etc/init.d/urngd enabled stopped
I have a similar problem. Forcing the service temporarily helped me solve the problem. In my case, SSH. Do you have any information on the problem with Ubus?:
dropbear -p 22 -F
/ # ps PID USER VSZ STAT COMMAND 1 root 1196 S ash 1787 root 1024 S dropbear -p 22 -F 1788 root 1196 S -ash 2131 root 1196 S /bin/sh 2138 root 1192 R ps / #
/ # service
Usage: service