Ticket #865 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

xserver-nodm do not work

Reported by: misc Owned by: ainulindale
Priority: major Milestone:
Component: SHR Image Version: SHR-unstable
Keywords: Cc:

Description

root@nivmizzet:~# /etc/init.d/xserver-nodm stop
Stopping XServer
/bin/ps: invalid option -- 'e'
BusyBox v1.15.3 (2010-01-13 13:33:49 CET) multi-call binary

Usage: ps 

Report process status

Options:
	w	Wide output

Indeed, the killproc procedure is incorrect, with ps being the one of busybox :

killproc() {            # kill the named process(es)
        pid=`/bin/ps -e x |
             /bin/grep $1 |
             /bin/grep -v grep |
             /bin/sed -e 's/^  *//' -e 's/ .*//'`
        [ "$pid" != "" ] && kill $pid
}

Change History

comment:1 Changed 3 years ago by jama

  • Status changed from new to closed
  • Resolution set to invalid

It's not xserver or ps bug..

It's sideeffect of broken update-alternatives script.

If you haven't resolved it already, please read "HeadsUp?! Read this before opkg upgrade" thread on shr-devel mailing list.

comment:2 Changed 3 years ago by jama

And if you want to make kill procedure compatible for busybox, please send a patch, otherwise we will continue to use ps from procps package.

Note: See TracTickets for help on using tickets.