NetBSD/share/sushi/procs/stopprocs/script1
garbled 221495cc86 Add the entire "processes" menu. This will allow
starting/stopping/showing/restarting of things in /etc/rc.d.  Also add a
few quick top(1)-like utilties just to round the menu off.
2001-04-26 02:26:16 +00:00

10 lines
218 B
Bash
Executable File

#!/bin/sh
# $NetBSD: script1,v 1.1 2001/04/26 02:26:22 garbled Exp $
for i in `ls -1 /etc/rc.d`
do
/etc/rc.d/$i status
done 2>&1 | grep -v unknown | grep -v Usage | grep 'is running' | \
awk '{print $1}'
echo "none"