221495cc86
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.
13 lines
230 B
Bash
Executable File
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
|