Add a new '-a' flag to broke(1); makes it print all Broken processes. 'broke -a' saves a lot of time when you are trying to track down busted processes on a server. I don't like running day-to-day as the host owner, or someone in sys, so broke tends not to show me things I am interested in as the sysadmin. 'broke -a' shows things that are borked on a server, and gives the heads-up that one of the hardware or users need a tune up. Reference: /n/sources/patch/broke-add-new-a-flag Date: Tue May 27 01:36:19 CES 2014 Signed-off-by: lyndon@orthanc.ca --- /rc/bin/broke Tue May 27 01:32:14 2014 +++ /rc/bin/broke Tue May 27 01:32:11 2014 @@ -3,6 +3,9 @@ if(~ $#* 1){ U=$1 } +if(~ $U -a){ + U='.*' +} ps | sed -n '/^'$U' .* Broken/s%[^ ]* *%~>/proc/% s% *.* (.*)%/ctl # \1% s%~%echo kill%p' --- /sys/man/1/kill Tue May 27 01:32:18 2014 +++ /sys/man/1/kill Tue May 27 01:32:15 2014 @@ -10,6 +10,9 @@ .PP .B broke [ +.B -a +] +[ .I user ] .SH DESCRIPTION @@ -49,8 +52,15 @@ state and owned by .I user -(by default, the current user) to go away. +.I user +defaults to the current user. +Specify +.B -a +to print all +.I Broken +processes. +(Processes you don't own won't go away.) When a process dies because of an error caught by the system, it may linger in the .I Broken