shithub: rc

Download patch

ref: 5da981c7e2ae3a9edcaf091b19ebd9341253e945
parent: 06a18acf1018d0ec8d8bcda72b8d82f2421dfd2d
author: sl <sl@x1yg3>
date: Sun Jul 6 19:04:59 EDT 2025

add pss

--- a/INDEX
+++ b/INDEX
@@ -49,6 +49,7 @@
 osuny - rcpu to or rimport from osuny.bell-labs.co
 pi - Calculate pi.
 pipefrom - Sender get's CC'd on every send.
+pss - Spot check for accumulating processes.
 r - setup environment and run rio.
 rag - save image under http://notreally.info/transport/spacecraft/ragnarok/img/
 sparkline - create a sparkline (by anth)
--- /dev/null
+++ b/pss
@@ -1,0 +1,8 @@
+#!/bin/rc
+# Spot check for accumulating processes.
+rfork e
+svc=(9bbs alarm backup cgd clone grepfs rc-gemd rc-httpd rrss runq smtp smtpd sshd werc)
+echo ps `{ps|wc -l}
+for(i in $svc)
+	echo $i `{ps|grep $i|wc -l}
+echo queue `{walk /mail/queue|wc -l}
--