Bash - Parameters

case "$1" in
  start)
        # start
        command 1
        command 2
        command 3
        ;;
  stop)
        # stop
        command 1
        command 2
        command 3
        ;;
  *)
        # anything other
        echo "Use: {start|stop}" >&2
        exit 1
        ;;
esac