NetBSD/share/sushi/procs/restartallprocs/script
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

13 lines
230 B
Bash
Executable File

#!/bin/sh
# $NetBSD: script,v 1.1 2001/04/26 02:26:18 garbled Exp $
if [ "$1" = "none" ]; then
echo "None selected, no action taken"
exit 0
fi
/etc/rc.d/$1 forcerestart
if [ "$?" != "0" ]; then
echo "Failed to restart $1"
fi