Ticket #683 (closed defect: duplicate)
/etc/init.d/xserver-nodm not compatible with busybox's /bin/ps
| Reported by: | mail@… | Owned by: | buglog@… |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | sysinit | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
The "/etc/init.d/xserver-nodm stop" command returns the following message, and
fails to kill 'xinit':
root@fic-gta01:/etc$ /etc/init.d/xserver-nodm stop
Stopping XServer
/bin/ps: invalid option -- e
BusyBox? v1.2.1 (2007.06.04-01:44+0000) multi-call binary
Usage: ps
root@fic-gta01:/etc$ ps | grep xinit
1158 root 720 S xinit /etc/X11/Xsession -- /usr/bin/Xfbdev :0 -br -pn
1332 root 632 S grep xinit
The init.d script tries to use "ps -e x" to get a list of running processes, but
the busybox implementation of /bin/ps does not accept any command-line arguments.
This can be fixed by using '/bin/pidof' to get the PID of xinit.
Observed on an openmoko-devel-image-fic-gta01-20070803091138 rootfs image built
using MokoMakefile?.
Attachments
Change History
Changed 6 years ago by mail@…
- Attachment xserver-nodm.patch added

Use 'pidof' rather than 'ps -e x'