NetBSD/share/sushi/procs/restartallprocs/script

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