ref: 2380532ff58c2afd666bc9c40dbb7a65c77c204c dir: /rc/bin/stop/
#!/bin/rc ~ $#* 0 || ps | sed -n '/^'$user' .* '$1'$/s%[^ ]* *%~>/proc/% s% *.*%/ctl% s%~%echo stop%p'