openwrt / openwrt/docker

[rootfs] `service` failed with error `Command failed: Not found`

Open
#144 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
625
Forks
103
Avg merge
3d 22h
Merged PRs (30d)
1

Description

# 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the service command in the OpenWrt rootfs and inspect how it processes the /etc/init.d/* entries listed in the report. Compare the command's output with the actual init-script state; done means the command no longer emits repeated Command failed: Not found messages when listing services.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.