NetBSD/share/sushi/procs/restartallprocs/script1

10 lines
223 B
Bash
Executable File

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