diff options
Diffstat (limited to 'rc/bin/stop')
-rwxr-xr-x | rc/bin/stop | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rc/bin/stop b/rc/bin/stop index c7f9f9a51..996471bcc 100755 --- a/rc/bin/stop +++ b/rc/bin/stop @@ -1,5 +1,4 @@ #!/bin/rc -U=`{cat /dev/user} -ps | sed -n '/^'$U' .* '$1'$/s%[^ ]* *%~>/proc/% +~ $#* 0 || ps | sed -n '/^'$user' .* '$1'$/s%[^ ]* *%~>/proc/% s% *.*%/ctl% s%~%echo stop%p' |