NetBSD/share/sushi/procs/restartprocs/script

13 lines
225 B
Bash
Executable File

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