#!/bin/sh # Tell the user how the script works usage() { echo echo "service " echo echo "Where is one of the scripts in /etc/init.d" echo "and is one of the usual start/stop/restart/zap/etc. commands." echo exit } # Check parameters [ -z "${1}" ] && usage [ -z "${2}" ] && usage # Execute requested script with requested action /etc/init.d/${1} ${2}